News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

[SOLVED][OpenGL]Shadow Volume Problem

Started by Farabi, July 30, 2012, 03:32:52 PM

Previous topic - Next topic

Farabi



Im making a shadow volume. As you can see when I used GL_REPLACE everything is worked properly, but when I used GL_INCR everything is ruined up. I want to know where is my mistake.Please tell me if you ever encounted something like this. Thanks for your time.

Onan Farabi,
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

My SiS Mirage Driver is buggy. Lots of feature did not worked even the feature name is on the list. I wont trust any vendor except ATi and nVidia.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

Finally its working. After doing research for 6 months, I get it working. Demo Application http://ompldr.org/vZjIxYw/ShadVol.zip (30 MBytes)




Self shadowing and very robust. On nVidia GTS-450 I can use it for shadowing hundreds of object which had 80k vertex each one.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

dedndave


Farabi

#4
Thanks all, without you I will never achieve this, for me, this is the ultimate achievment for all of my live  :greenclp: .  This technique is the hardest I ever encountered.
Unfortunately sending goods from indonesia to another country is outrageous as hell, lets hope someday the shipping cost is 2 USD/kg so I can pay for your help. I had many from my lands lots of harvest.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

#5
I want to show another demo.



This demo showed you that the shadow is not limited to a flat planar surface but worked to anything and can shadowing anything as accurate as it should be.
If your GPU Card allow for hardware accelerate for double side stencil, it will calculate the double side of the vertex simultaneously.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

dedndave


Farabi

Thanks dave, im very happy to be able to understand how it worked. Lots of the calculations should be done manually, but after i undestand it, it became a trivial matter.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

Im still able to optimize this further but I dont think i should. nVidia GTS 450 will be a standard hardware in a couple of years and I'll look stupid to do my current tech of optimizing algo which need extra few hundreds kbytes and iteration which is not worth the effort.

Code is not important but understanding it is much more important.  I ll just not release the code but also will make a tutorial because some people helped me making it.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

http://ompldr.org/vZjQyeg/Test.zip

Another demo
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

Another Demo
http://fgameengine.googlecode.com/files/DEMO.zip


This demo intended to demonstrate how the shadow volume able to shadowing it self. This shadow technique is fast and robuts.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

 http://ompldr.org/vZmIyNQ/PlaneGame.zip

http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

Not so good but it is demonstrating the skeletal animation system http://fgameengine.googlecode.com/files/DemoAnimation.zip
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

Im making another demo to demonstrate the ground system and the dynamic shadow.
http://ompldr.org/vZ2s0bQ/GroundDemoWithBuilding.zip
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi



I tested with a few object and it worked. The frame rate is not dropped even if I used several object. Object that are not on the screen or behind another object is not drawn and it saving a lot of time. I think Im going to start to test to create a whole town.
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165