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.

DarkBASIC Discussion / DBC: Slicing up multiple images from 1 png file and using scraggle's planets

Author
Message
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 26th Mar 2007 13:06 Edited at: 26th Mar 2007 14:32
Hi All, once again I've hit the brick wall and ask for assistance.

1) I've downloaded about 20 really cool explosion effects from retroroid but each effect is a sequence of explosions in 1 paint shop pro file, which I cant easily (it would seem) separate to run in DBC. I know there was an accompanying program with these but its written in DB pro and doesnt work in DBC. Firstly, do i need to separate the images to be able to properly use them say in an explosion sprite, and secondly, if so how do you cut them up (I tried using the PSP image slicer but without success.

2) Scraggle posted a while ago some really cool planet textures. For each planet there are 4 PSP files. These are
- Bump map
- Image
- Light mapped texture
- Texture

I presume each of these has to be overlayed somehow ontop of a spherical object but I have no idea where to begin. I know how to texture an object but thats about the size of it. Furthermore, I cant even import them into DBC - it says image does not exist. I suspect it has something to do with the fact it is a 1024x1024 image rather than the 512x512. Can anything be done to get these imported?

3) My spheres in DBC are very basic and look rough round the edges. Someone mentioned to me that I need to increase the polygon count of the sphere - how do you do that?

4) An unrelated question to the above but if I'm in a menu phase of a game, and there are a number of "visual buttons on the screen to click on" - is there an easy way to click on a button other than to say if mouse cursor is within range X-Y then goto submenu sort of thing. Sorry for being a bit confusing, I guess what i'm asking is, is there an inbuilt button mouse detector function.

Thanks again for any help on the above
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 26th Mar 2007 20:19 Edited at: 26th Mar 2007 20:20
It might be easier to answer your question if you linked to your media.

re 4) If you don't want to use the builtin Windows® windows functions, then you'll need some sort of plugin-dll.

I'm unique, just like everybody else.
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 27th Mar 2007 00:34 Edited at: 27th Mar 2007 00:36
Thanks but I'm not sure what you mean by "linked to your media" or not using built in windows functions. I'm happy to use any built in functions so long as they achieve the goal. Also what are DLL plug ins? Sorry for sounding dumb but I'm new to all this.
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 28th Mar 2007 00:55
Bump
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 12th Apr 2007 00:31
I'm at the grovelling stage now...

can anyone help me with Qs 1 and 2? pretty please with a cherry (or 2) on top
Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 13th Apr 2007 01:48
This may or may not help,

"Linking your media" means including it in the post by either linking to a url that has the images, or by providing a download of the images so that someone in the forums can see what you are looking at and talking about.

I haven't used photo shop, but I've used gimp and they may be similar (or not). The 4 files represent a single planet are probably layers in photoshop. When they are overlayed in the proper manner, they create the final texture of the planet. This final texture or image is the image you export from photoshop in the form of a bitmap, or jpeg, or something that DBC can use. You would then load this image into dbc, and texture your object accordingly. I'm guessing that's how you would use those psp files.

The explosions do need to be divided up. If you can export the file from photoshop to a format DBC likes (bmp, jpeg,png etc), then once you load the acceptable file into DBC you can frame specific sections of the image with the GET IMAGE command and assign each image to an image number. Then you can swap the images for a specific sprite using the SPRITE command to create the animation.

Spheres - if you make a sphere in DBC with the command MAKE OBJECT SPHERE, you cannot change the poly count. You'd have to make the sphere in an external modeling program or write your own sphere creation routine inside DBC.

There are no button commands in DBC. You have to manually program them and identify the clicking on them using areas between specific x and y coordinates. But if you want to use Microsoft Windows Buttons and gadgets, then you need to call a DLL (which is a machine code library file that can be used to extend functionality by accessing functions contained inside of the DLL) or write code to utilize the Windows API (which uses specific Windows system DLLs anyway).

Enjoy your day.
Hangar18
19
Years of Service
User Offline
Joined: 13th Mar 2007
Location:
Posted: 16th Apr 2007 06:54
Thanks Latch, much appreciated!!

Login to post a reply

Server time is: 2026-07-06 06:44:34
Your offset time is: 2026-07-06 06:44:34