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 Professional Discussion / Invisible Objects?Please Help

Author
Message
abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 7th Jun 2003 06:43
Is there a way in DBPro,to make an object in my level(.xFile)
totally invisable? but still be able to collide with it?

Iv'e tried the Ghost effect,but that just makes it partially
invisible(Transparant),i want it to be completely invisible.
but the player still knows its there,when he walks into it.

please help,
Thanks.
LoKiDeCaT
23
Years of Service
User Offline
Joined: 28th Aug 2002
Location: United States
Posted: 7th Jun 2003 07:07
I think if you ghost a solid black object, it's invisible. (like texture the object pitch black)..

Or, I'm not sure if you can collide with a hidden object, therefore just put the object there and HIDE OBJECT on it.

best o' luck

Loki D'Cat - Modeller, Composer, Animator
Nerdsoft Creations
Machine Specs: Athlon XP1800+, ATi Radeon 8500 64mb, 1GB RAM, Windows 2000 AdvSvr
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 7th Jun 2003 07:07
hide object <object number>

Pneumatic Dryll
The Wendigo
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 7th Jun 2003 07:31
if hide object fails, try using a black bmp and set transparency on on the object. That should run faster than ghosting.

Current Projects: mini BSP maker 50%, Height Mapper with many features 75%, FPS/RTT Nameless at the moment 15%
abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 7th Jun 2003 08:18
Thanks for the help,but unfortuanatly for what i'm trying to do
doesn't work.This might be a bit of tricky thing i'm trying to do,
so it might be a bit hard to work out how to do it.

I'm trying to have certain floors and some walls invisible,but
still be able to have an effect like a shadow or a reflection,
still work when they are invisible.

Think of being in a room,with a totally see through floor,but
still being able to see your shadow casting on it,weird?
i know it sounds weird,but iv'e got a great idea i want to try.

Iv'e textured the floor,with a texture thats completetly black.
and used ghost object on<object number> and have tried the HideObject.

They both make them invisible,but will not reflect the players shadows on them.

Can anyone think of a way i could do this effect?
what was the transparancy idea you had,wendigo?
i can't find how to set the transpancy for the black texture in my docs.

Thanks.

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 7th Jun 2003 08:22
change the black texture to another level of grey.

It will be textured and with a ghost command appear transparent but due to the texture still display a ground that will appear a lot more faded than a lighter grey texture.

abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 7th Jun 2003 10:47
indi,thanks for the reply,i tried what you suggested but its no different from the ghost effect,no shadows or refelections work.
If it wouldn't be too much to ask,would you be able to post a quick example of what you mean,because maybe i might have done it wrong.

I have followed what you suggested,though with reflections or shadows they do not work with it.
Thanks.

abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 7th Jun 2003 10:54
After reading back what i just wrote,i meant to say,its no different from using the Ghost Effect with the Black Texture.

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 7th Jun 2003 13:53
"Think of being in a room,with a totally see through floor,but
still being able to see your shadow casting on it,weird?"

Put a camera where the floor is, pointing down, and use SET CAMERA TO IMAGE to texture the floor. That way it will appear to be see through, but shadows will still be visible on it.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 8th Jun 2003 01:48
"Put a camera where the floor is, pointing down, and use SET CAMERA TO IMAGE to texture the floor."

Sorry rob,i don't understand what you mean.
I have a 3rd person camera,that follows the player,like in the room demo.So think of being in the room of that demo.

you walk up some stairs,and in front of you,the stairs appear to end,but instead the adjoining floor is invisable.
You walk across the "ivisable"floor but could see your reflection or your shadow on it.

Is there an alpha command or such to do this? like for setting the alpha level for it? or another way i could achieve this effect.

Thanks for all your help,i appreciate it.

Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 8th Jun 2003 02:01
There is an alpha command in Patch 5, but not in the current version. You can use vertex alpha though - but that does not work with reflective surfaces.

Anyhow, you create a camera point it just below the floor, so that if you "looked through" the camera you would see the same view as you would looking through the floor. You then use set camera to image on that camera so that you can texture the floor with the view from that camera, that way you appear to be able to see through the floor, but the object is still visible and will still show shadows.

Do you want Windows menus in your DBP apps? - Get my plugin: http://snow.prohosting.com/~clone99/downloads/tpc_menus_102.zip
abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 8th Jun 2003 02:10
arrr,i got what you mean now.
Thanks Rob,i'll give it a try.

Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 8th Jun 2003 11:50
Hi Rob, what does the ALPHA command in Patch do? It sounds interesting to me.

And what do you mean by "using vertex alpha"? Do you mean you can alter the vertex color's alpha value? How?

Thanks!

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 8th Jun 2003 11:53
FYI, I am currently finding ways to alter the transparency (or alpha) of the entire model. GHOST OBJECT doesn't suit my needs as it doesn't allow me to alter the alpha value precisely, i.e. it only allows alpha 50% or totally opaque.

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
abloke
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 9th Jun 2003 04:28
Bulleyes,i'm having the same problems in DBPro.
I can hide the geomitry with the above techniques,though it doesn't
give the desired effect for reflective surfaces.

Login to post a reply

Server time is: 2026-07-11 11:42:06
Your offset time is: 2026-07-11 11:42:06