Pixelated lighting

Previous topic - Next topic

AMateus

I believe this has to do with the fact the light in glbasic is per-vertex and not per-point.

So, if per-vertex, the more detailed is the object the better.

I believe.. lol

Kitty Hello

No. What you export is what you display.

MrTAToad

The Ac3D and DDD files are included

[attachment deleted by admin]

mentalthink

#18
HI Mrtatoad, the sphere it´s made whit som 3d software, or it´s coded into Glbasic.

In the first case, I think the trouble it´s whit the texture mapping...

Make a test, disable the texture, if the sphere looks fine it´s the texture, I lock the last images, and if you take a look whit care, you can see, portions of triangles, like in groups, like puzzle piezes... I think this it´s the error.

Sometimes in 3ds max I have this trouble, and all the troubles it´s for the texture mapping, the most cases it´s when make a unwrap texture...

Another thing, can be the cone of the light, if it´s too much little and the cone of the light don´t affect all the surface can be this, in the 3D suites, appears this effect, if the ligth not it´s in a good place.

And well this it´s a lazy, but the ligth don´t have the -3 ID....  :giveup: :giveup:


erico

Mentalthink has a point, it can be the UVMAP.
I will take a look at it too later.

by the way, did I tell you this game of yours is coming out really nice?

MrTAToad

#20
No you didn't until you wrote it :)

I'll see what it looks like without the texture...

Unfortunately its not the texture - this is what it looks like without the texture :



[attachment deleted by admin]

erico

It is really strange as the shades are hitting quads instead of triangles....hmmmmm

MrTAToad

Yes, I dont know why - I changed the distance of lighting, but that hasn't helped.

The circle should be composed of triangles (and not quads) as that is the option selected for spheres...  I wonder if the exporter uses quads...

erico

I can´t open DDD or AC.

At the worst case scenario, I can create a ball here and add your map into it, or prepare it to accept your maps as they are.
As far as I tried on the snowman thread, it all did work.

If such case is delaying your game, let me know.

But we must find out the reasons for that!

Hatonastick

#24
Hmm interesting.  I just changed the torus to a sphere in GLB's 3D Shadow test and it's doing exactly what Mr TA Toad's example/program is doing.

Edit: Actually the shape doesn't matter.  Just noticed the Torus has pixelated lighting/shadows as well.  As if it's lighting up quads.  Looks very ugly and not at all how the shadow demo used to look.  BTW this is on my PC and not Android or something like that. :)

Looks to me that there's no blending going on.  Each 'quad' is either on or off.  At least that's how it looks on the shadow demo when I run it, might not be the same on yours.
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

MrTAToad

Oh yes, the Shadow demo does the same...

No, its not holding anything up!

Hatonastick

My point being that it's not a problem with your model.  I kinda forgot to add that part. :)

I realise you know that, but I find I have to state the obvious because that's how I'm wired.  =D
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

bigsofty

Looks like you've lost your smoothing groups, try exporting as an .OBJ and then convert to .DDD
Cheers,

Ian.

"It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration."
(E. W. Dijkstra)

Hatonastick

I don't see how it can be a problem with his object if the 3D Shadows demo, that is part of the GLB release and which creates its own objects on the fly, has _exactly_ the same issue -- especially when it never used to have that problem.

Edit:  Sorry, when I read that back I sound like I'm being harsh.  It wasn't meant that way. :)
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

Kitty Hello

I see there's something seriously wrong. Also a donut won't show properly.