• Advertisement

Archived

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

Texture mapping.. floats are hella annoying.

This topic is 5886 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
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

  • Advertisement