help render to texture 1024x1024

Started by
10 comments, last by Stylez99 20 years, 6 months ago
Hi, i use the source code from nehes opengl tutorials 36. the textures looks good with 512x512 but when i use 1024x1024 the texure is not complete...it have a big black border around it... Hope anybody can help me. Bye Stylez PS: Sorry for my bad english
Advertisement
I am not sure that n e video cards even support textures that are higher than 512*512.
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.
some do, but alot (probably most) don''t
Beer - the love catalystgood ol' homepage
Most support 1024 even my old tnt2 did.

I dont know what is causing your problem.
quote:Original post by Dredge-Master
some do, but alot (probably most) don''t

My NV25 is able to load 4096x4096 RGB and I also think my NV15 is.
Maybe I should recall that one of the failures of the voodoo3 was the support for textures no larger that 512x512 (or maybe it was 256x256?) and this was caused too little.

Previously "Krohm"

Almost all video cards do support textures up to 4096x4096, but it''s recommended not to go over 2048x2048.

If your card can''t handle it, you will know by calling glTexImage2D with GL_PROXY_TEXTURE_2D : take a look at the Red Book I think the examples are pretty clear about that.
My TnT2 support 2048*2048 textur size. Almost graphic card todays support 4096*4096 texture size.
So, the problem isn''t the texture size....but I thinck it is the frame buffer size. If you are using a resolution of 1024*768 then when you render to texture of size 1024*1024, the X is complecte without any black hole, but in the bottom of your texture it will appear a black border. If you are using a resolution of 800*600 or 640*480 then it will appear black holes in x and y at the same time. If you are using a resolution of 1280*1024 you shouldn''t an problem at all!
Techno Grooves
quote:Original post by Krohm
quote:Original post by Dredge-Master
some do, but alot (probably most) don''t

My NV25 is able to load 4096x4096 RGB and I also think my NV15 is.
Maybe I should recall that one of the failures of the voodoo3 was the support for textures no larger that 512x512 (or maybe it was 256x256?) and this was caused too little.



two cards in mine, one supports 2048x2048 and the other supports 1024x1024.

Doesn''t mean that everyone''s card will support it though. Anyone using pre TNT2 and GeForce2 cards (I think it was this time that ibm-pc cards got to 1024x1024) won''t have much behind them.


... Get an ultrasparc with a 512mb video card you may be stuck in sunos and solaris, but with that for a video card (and accelerator) who cares
Beer - the love catalystgood ol' homepage
Hi Filami,
i cant use a resolution about 1280*1024. My resolution is 640x480 and when i render a scene to a textur with 512x512size its looks not god ... my idea was when i render the textur with the size 1024x1024 that the scene looks good.

bye
Stylez
What magnification and minification filters are you using?
Can you post a screenshot?

This topic is closed to new replies.

Advertisement