Need help on creaton of 3D system
Displaying 1-9 of 9 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
FlameRainCaptain

I am making a VERGE 3D system using VERGE 2.7. If I can get through this problem, my project should be going smoothly.

I need a way to resize an image without having to blit it onto the buffer. I have to be able to use ClipDist on the new resized image afterwards.

If this is impossible, you can tell me. I have a plan B, but it would not be very easy to do. Having to use the proportion effect in PSP 4 times on each of my textures. Will take very long and would result in a bigger game.

I need this because to screw an image into oblivion to give a 3D effect.



Posted on 2001-07-10 08:54:41

Psalt

You can try ScaleSprite() or TScaleSprite() but I don't know if it is the type of resizing you are looking for.



"Without pain one may not create beauty"

Posted on 2001-07-10 16:23:10

Ear

(nt)



- Ear "It's time for the human race to enter the solar system."

Posted on 2001-07-10 16:32:12

FlameRainCaptain

I am looking for that mode7 effect, but on certain images, not the whole screen. This must be done without using the image buffer, because it will have a rather ugly overlap.

And sorry, I was talking about image.clip, not clipdist.

I have posted an example here.
http://www3.sympatico.ca/as-santos/sillypicture.gif

Excuse the screwiness of the picture, but I quickly did it in paintbrush. And in my game it won't just be an empty box so don't tell me to use the drawing functions.

If you help, thanks.
If you don't thanks for reading it.
If you don't read it thanks for clicking my post.
If you didn't click the post, how the heck do you know about this.



Posted on 2001-07-10 20:36:01

FlameRainCaptain

All I have to do is use image.clip() on little parts (3 x image.height) and then resize these to (1 x varheight) (varheight being the height variable needed to create this effect.

If this confuses you, don't worry. I'll release the .py when I'm done. (if there will be a place to put these random codes when I finish)

I'm sure someone wants to do a mode7 or make trapezoid images without an advanced image editor.



Posted on 2001-07-10 20:51:10

Miggle

Try going to gamesutra.com you might find an algothm(sp)



Posted on 2001-07-10 22:34:36

andy

First off, you really shouldn't trouble yourself with it right now. I'm going to code a simple 3D api directly into the EXE. Nothing special, but it'll handle most of the nasty math, leaving you free to do the fun crap.

Second, can't you just use ScaleBlit? If necessary, you can create a new image, then ScaleBlit the old one onto the new one.



"I can't wait for this latest pile of melodrama to disappear, so that the VERGE community can once again concentrate on games rather than on itself." -- Joe Lee

Posted on 2001-07-11 16:34:23

FlameRainCaptain

Thank you for the info. That will save me a LOT of paper and graphwork.

When will the 3D api be available and what do I have to make for it? Right now I have a couple of 480 x 480 images as textures.

As for the scaleblit thing, I don't only need to make the images larger or smaller, but I also need to give them a trapezoid shape for hallways. (I was thinking of making my 3D system like those Megazeux ones if you've ever seen one.)




Posted on 2001-07-12 20:55:56

andy

Well, for one thing, it'd be a lot more efficient with regards to the hardware if the textures dimensions' were a power of two. (256x256, 512x512, 1024x16, etc....) Additionally, you should keep them under 256x256, so that people with older 3D cards can still use the OpenGL driver to get decent speed.

Lastly, you're talking about raycasting, aren't you?



"I can't wait for this latest pile of melodrama to disappear, so that the VERGE community can once again concentrate on games rather than on itself." -- Joe Lee

Posted on 2001-07-15 10:50:28


Displaying 1-9 of 9 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.