3D without opengl on pc

Previous topic - Next topic

XaMMaX

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 :)
Sry for my english

doimus

There is a command that turns texture smoothing on/off. SETSMOOTH i believe.

edit: erm no, it is SMOOTHSHADING.


XaMMaX

#2
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.
Sry for my english

MrTAToad

Have you tried X_MIPMAPPING ?

XaMMaX

Tried it right now, no difference
Sry for my english

Scott_AW

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.
Current Project, Orbital Contract Defense
http://gamejolt.com/games/adventure/code-name-ocd/9887/

BlackShadow now open source/resource(requires duke3d)
http://gamejolt.com/games/adventure/black-shadow-3d/9885/

matchy

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:)

XaMMaX

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.
Sry for my english

MrTAToad

3D on a Wiz/GP2X is severely limited - Gernot has mentioned what is available and what isn't

XaMMaX

I can't find his post about that, can you point me please?
Sry for my english

MrTAToad

#10
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