Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / simple loop

Author
Message
stoker
20
Years of Service
User Offline
Joined: 5th Nov 2003
Location: UK
Posted: 16th Nov 2003 20:27
can somebody help out a newbie dumkopf?
i want to make a bitmap appear in the center of the screen. Then it has to rotate, getting bigger until it fills the screen, and then stops. I kow it's just a simple loop, but I can't get it right.
I thought that moving the camera closer might work, but it doesn't?
Any asst. would be greatly appreciated.
TRS80Model1
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 16th Nov 2003 22:14
well first the bitmap needs to be the size of the screen, otherwise its going to look like crap when it fills the screen from the scaling effects
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 16th Nov 2003 22:18 Edited at: 16th Nov 2003 22:20
make a plain
load an image
texture the plain with the image
position the plain well away from the camera
rotate the plain and either move the camera closer or move the plain
stop the plain when it is at the correct angle (right way up) and close enough, see the source box for an (untextured) example, you can add your own image, if the picture is revolving too fast then you can alter the values by fifths to make it slower, cheers.

Mentor.

ps: you may need to alter the final location to get the image the right size, just make the 199.9 in the code smaller untill it fills the screen correctly.

Login to post a reply

Server time is: 2024-09-21 09:17:29
Your offset time is: 2024-09-21 09:17:29