Author Topic: [SOLVED][OpenGL]Shadow Volume Problem  (Read 11130 times)

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
[SOLVED][OpenGL]Shadow Volume Problem
« on: July 30, 2012, 03:32:52 PM »


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,
« Last Edit: December 11, 2012, 09:20:27 AM by Farabi »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #1 on: August 04, 2012, 11:06:08 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #2 on: August 10, 2012, 08:52:29 PM »
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

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: [OpenGL]Shadow Volume Problem
« Reply #3 on: August 10, 2012, 11:47:41 PM »
 :t

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #4 on: August 11, 2012, 01:53:24 PM »
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.
« Last Edit: August 11, 2012, 03:50:25 PM by Farabi »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #5 on: August 11, 2012, 02:17:47 PM »
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.
« Last Edit: August 11, 2012, 03:51:13 PM by Farabi »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: [OpenGL]Shadow Volume Problem
« Reply #6 on: August 12, 2012, 02:42:37 AM »
that looks great, Onan   :t

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #7 on: August 12, 2012, 03:36:17 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #8 on: August 12, 2012, 03:57:59 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #9 on: August 15, 2012, 11:05:48 PM »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #10 on: August 18, 2012, 01:16:55 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #11 on: August 31, 2012, 09:39:42 PM »
http://farabidatacenter.url.ph/MySoftware/
My 3D Game Engine Demo.

Contact me at Whatsapp: 6283818314165

Farabi

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #12 on: September 17, 2012, 07:24:54 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [OpenGL]Shadow Volume Problem
« Reply #13 on: December 04, 2012, 04:35:50 PM »
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

  • Member
  • ****
  • Posts: 968
  • Neuroscience Fans
Re: [SOLVED][OpenGL]Shadow Volume Problem
« Reply #14 on: December 31, 2012, 03:05:52 PM »


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