Skip to main content
gamedev.net
🔒 Locked

2D texture

Started by gaurav khanduja 2 replies 700+ views
Original Post
gaurav khanduja
gaurav khanduja
Hi all i am right now rendering points(136 * 136* 136) in a cubic grid. I am calculating the color according to the data value (which I am reading from file) at each of these points. But the rendering is too slow because of the number of points. I was thinking of creating 136 2d texture out of it. Firstly I wanted to know is it possible, and if yes how should I go about it. Thanks Gaurav
Ryan Clark
Ryan Clark
Need a bit more info before we can help you. What platform? Windows? What library? DirectX? OpenGL? Are you using C++?

You can definitely make a cube and texture it, using DX or openGL, if that's what you're asking.

Give us some more details, and I'm sure you'll find a solution.


Ryan
gaurav khanduja
gaurav khanduja

I am using VC++ 6 and OpenGL 1.1 and glut library. Well I have rendered the images as 2D texture, so machine is not the concern,

I wanted to know, suppose now you have 136* 136 * 136 (this is a cubic grid but it can be any structure -- all i know the locattion (x,y,z) and the value at that point) grid points and you calculate the color of that point based on the data value at that point. If i render these points the operations like translation, rotation, clipping are too slow .... so I wanted to know how can I render these as textures (like 136 2D textures in this case).

iMalc
iMalc
Are you taling about render-to-texture and having it transparent everywhere except for where the points are?
That could work, but it depends on whether you change your viewing angle to view from the side.
You couldn't render to texture every frame or it would be slower not faster.
Sorry I haven't used the API you mention so I can't help there.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.