Archived

This topic is now archived and is closed to further replies.

eldee

Texture mapping.. floats are hella annoying.

Recommended Posts

eldee    122
Is there any way to texture map without using the standard float/int/double method? for example: glTexCoord2f(1.0f, 0.0f); 1 represents 100 % of the X value here... is there any way to texture map a quad using the pixel coordinates of the actual texture? it makes alot more sense to me... i could probably write a function that does all this but i''d rather not add any unecessary overhead if there''s something API-wise already availible.. -eldee ;another space monkey;

Share this post


Link to post
Share on other sites
BeyondDeath    122
I think you can just do:
pixel/number of pixels
so if your image is 200 wide and u wanted to have it at 100
it would be 100/200
that would give you .5 which would make sense.

Share this post


Link to post
Share on other sites
eldee    122
hrm.. i suppose you''re right
i was hoping there was an easier way, but that works too..
im still waiting for that api that will code a game for you
and get you invited to carmack''s lan parties..



-eldee
;another space monkey;

Share this post


Link to post
Share on other sites
ARID    122
Personaly I enjoy the codeing aspect of makeing a game. It''s fun. Besides think of all the shotty games that would be out if that API existed. If you just want to make a game to sell buy a Engine Torque (formaly V12 and the Engine Tribes 2 uses) is only $100.

Share this post


Link to post
Share on other sites
eldee    122
yeah, i learn something new every day...
im not TOO into just using something for the hell of it, i like
to understand what''s going on underneath.. which is
why im writing my own 2d engine rather than downloading
someone else''s and copy/pasting what i need..
it''s fun coding games, but sometimes you hit those
walls where you''re like "ARGH! FUCK ME!" heh.
literally.


-eldee
;another space monkey;

Share this post


Link to post
Share on other sites