Is there a way to not use opengl on pc? Like ppc and gp2x does. So textures are not smoothed(oh god, i hate this) and i can see how it will be on wiz for example.
And btw any ideas how realize fog with glbasic like in silent hill? To save resources(not to draw distant models) and styel :)
There is a command that turns texture smoothing on/off. SETSMOOTH i believe.
edit: erm no, it is SMOOTHSHADING.
Don't work for me( Looks like it don't have any effect on 3d only on 2d
btw about fog. X_FOG don't work on gp2x so need any over idea.
Have you tried X_MIPMAPPING ?
Tried it right now, no difference
I believe Silent Hill used large blotches of billboarded fog textures with an alpha value, like if you made a gradient sphere of white over a black background and draw it with x_sprite and a positive alpha value.
One way to simulate fog is to have several 'layers' of a solid color polygon the perpetually sits in front of the camera, lets say 9-10 layers, each equal distance further from the other with an alpha of either -0.1 or 0.1 depending on if its a fade to black(dark) or white(bright)
Thats just a theory though, although I've done something similar in the past.
An example I use is a triangle gradient texture on a transparent texture on a object/s drawn with alpha to simulate direct fog light, water, ice or other translucent matter. If the effect suits the desired animation it can be a savings in speed compared to X_FOG for iPad but z-ordering can be an issue:)
2Scott_AW, i hope alpha works correct on 3d with gp2x\ppc\wiz etc, gonna try it today later, thanks.
2matchy, i bet it will be great for light from windows and some other stuff. Gonna try it soon, thanks.
3D on a Wiz/GP2X is severely limited - Gernot has mentioned what is available and what isn't
I can't find his post about that, can you point me please?
I think I found it :
It should all work. But limita are:
No BumpMapping
No CelShading
Lights might not be perfect
Z-Buffer problems. You must specify a narrow range for the z-buffer (1 to 100 or so) to work.
(http://www.glbasic.com/forum/index.php?topic=2313.msg17380#msg17380)
and then there is also http://www.glbasic.com/forum/index.php?topic=4387.msg32734#msg32734