Texture mapping.. floats are hella annoying.
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;
-eldee;another space monkey;[ Forced Evolution Studios ]
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.
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.
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;

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;
-eldee;another space monkey;[ Forced Evolution Studios ]
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.
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
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;
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;
-eldee;another space monkey;[ Forced Evolution Studios ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement