Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Dec 2009
Offline Last Active Jan 08 2013 10:54 AM

Topics I've Started

From uv to local position

27 December 2012 - 03:56 PM


Iam processing a light map, and I need to recover the position from a model from the uv mapping.
What is the right way to do this ?
This is what I did ...

Rasterize all the triangles of my model and constructed a dictionary that mapped every uv to the generated position and normal.
Is there another more clever way to achieve this ?

Another question related.

I did a radiosity simulation, how can I save the results to a light map ( I already have the uv mapping ) I used the model triangles as the initial patches, but after I needed to tessellated some of them.
In the end I got looks of triangles with their radiosity, how can I map the tessellated triangles color to a texture.

Again I Rasterized the initial triangles and for each "texel" generated I looked into the tessellated triangles to find the right color ....
Is this a clever way ?

Thanks in advance !!!

Create a LightMap with raytracing

13 November 2012 - 07:14 PM

I want to create a light map render using ray tracing for learning purpose.
I already builded the raytracer part, but i dont know how to generate the lightmap from that.
Today, i just throw the rays from my camera, calculate the intersection, shading, throw extra rays ....
But how do i use this to generate the lightmap ?
Do i need throw rays from each texel of my model's texture ? (how many rays should i throw ??!!) Is this the right way ?
And, to "throw rays from each texel of my model's texture", do i need to rasterize my triangles, get the generated position, them throw the rays ?

Thanks !!

How do I read a CubeMap on CPU side? (Or how the GPU texCube function read a pixel from...

14 April 2012 - 07:37 AM

I need to extract the one pixel from a CubeMap (I already have the 6 textures extracted) using the normal vector. How can I achieve this ?

I want something very similar to what texCUBE(link) does in GPU but in CPU.

I am using XNA and C#, but an example in any language may help.

Artemis Entity Framework Ported to C# (and WP7, Xbox using XNA 4.0)

15 October 2011 - 10:24 AM

Artemis is a high performance Entity System framework for games, written in Java and now ported to C# (also released versions for phone7 and xbox), and is a framework to manage entities, components and systems in a game world. It is inspired by
great article Entity Systems are the future of MMORPG articles by Adam Martin on t-machine.org.

Our port (and others informations) can be found here: http://ploobs.com.br/?p=1765

List of links about game programming and computer graphics for begginers

18 June 2011 - 09:17 AM

Hi guys,
Everytime i see people asking in foruns for book and website tips about game programming and computer graphics, there is no centralized point where everyone can look for it. (or i dont know where it is =P)

Most (iam exaggerating =P a LOT) of the links that google found are old or not working anymore.

So i made a post in my blog including lots of links that i regularly use and recommend for people.


I want the help of you guys =P If you know good books (that you really liked and recomend) about these matters (or any other category that i did not put in the post) or link that you like and use, pls tell me by there.

I WILL update the post.The idea is to keep those links alive forever =P