Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help on something...
#9
Quote:rel, how would one make a scroller using openGL?

I have made one now, using SDL, and blitsurface, it's fast and such, but always good to improve =)

Also, would it be possible to use openGL to morph tiles togheter?, to get nice transitions, lets say, from grass to stone, instead of razor sharp edges?

Easy, use glQuads. It's faster than SDL and yo can stretch, blend, morph, rotate, etc. Basically what you can so with glPerspective you can do with glOrtho.

All you have to do is call glOrtho instead of GLperspective and you can put triangles, quads, polys, lines, pixels just like QB.

Say you have a screen of 640* 480, to plot a pixel:

Code:
glBegin glPoint
       for loop for plotting points
      end loop
glend

I could post a lil demo but it's in my computer which was busted. :*(

I may make another one this weekend since I'll be coding on my sister's comp. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Messages In This Thread
I need help on something... - by Dr_Davenstein - 12-24-2004, 10:09 AM
I need help on something... - by relsoft - 01-02-2005, 01:15 PM
I need help on something... - by Dr_Davenstein - 01-02-2005, 02:27 PM
I need help on something... - by relsoft - 01-04-2005, 12:21 PM
I need help on something... - by Dr_Davenstein - 01-06-2005, 03:01 AM
I need help on something... - by relsoft - 01-06-2005, 11:46 AM
I need help on something... - by Z!re - 01-06-2005, 11:59 AM
I need help on something... - by TheBigBasicQ - 01-06-2005, 01:23 PM
I need help on something... - by relsoft - 01-07-2005, 10:39 AM
I need help on something... - by na_th_an - 01-07-2005, 07:12 PM
I need help on something... - by relsoft - 01-08-2005, 07:20 AM
I need help on something... - by na_th_an - 01-08-2005, 07:47 AM
I need help on something... - by relsoft - 01-08-2005, 07:58 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)