Jump to content

  • Log In with Google      Sign In   
  • Create Account

akaitora

Member Since 05 Sep 2008
Offline Last Active Dec 17 2015 12:12 PM

#5252600 Corrupted Vertex Buffer

Posted by on 16 September 2015 - 10:57 PM

mhagain, thanks for the solution!  That fixed it!  I didn't realized that glVertexAttribPointer required the buffer to be bound before use.  Thanks for the heads up!




#5249299 Procedurally Generating Noise in a Shader

Posted by on 28 August 2015 - 01:46 AM

Tonight I wrote a tutorial explaining how to procedurally generate noise in a shader if you need to.

 

Take a look here.

http://glslsandbox.com/e#27370.3

 

I hope it helps someone!  =)

 

procedural_noise.png

 




#5236258 Picking a Random Uniformly Distributed Point in a Circle

Posted by on 22 June 2015 - 10:56 PM

A short article tI wrote that attempts to give a little insight into how this is done mathematically.

 

http://xdpixel.com/random-points-in-a-circle/

 

RandomPointInCircleComparison1.png




#5233838 Roughness in a Reflection

Posted by on 09 June 2015 - 11:27 AM

So if I understand correctly, from a shader perspective, we sample a cubemap just like we would as normal.  The only difference is that the cubemap is been blurred offline. Perhaps we have multiple versions of the blur per mip map.  




#5230358 Procedural Lightning

Posted by on 22 May 2015 - 12:03 AM

Hey renman29!  That is very kind of you to say and I am glad you liked it!

 

I actually just made a few small adjustments to make more of a dynamic looking energy field.  It uses 2 passes of fractional brownian motion.

 

energyfield_port.png

 

http://xdpixel.com/energy-field/




#5230098 Procedural Lightning

Posted by on 20 May 2015 - 01:54 PM

Hey guys!  Here is a shader I wrote that demonstrates a simple way to do procedural lightning.

 

stormy_night_port_huge_it_small_portfoli

 

You will need a WebGL enabled browser to view the demo.

 

http://xdpixel.com/stormy-night/

 




#5229374 Dot Product 101

Posted by on 16 May 2015 - 05:36 PM

Hey guys!

 

I wrote an article on the dot product.  Hopefully it will help someone out.

 

http://xdpixel.com/dot-product-101/

 



#4826097 Build targets

Posted by on 21 June 2011 - 12:47 PM

In Visual Studio, when I set my build target to "DEBUG", I can use the macro

#ifdef _DEBUG
...
#endif

How can I do this for custom made build targets. For example lets say I have a build target called
TEST

I can't just do

#ifdef _TEST
...
#endif

Any ideas? thanks!


PARTNERS