3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: One Dimensional BillBoard Effect  (Read 224 times)

« on: May 17, 2014, 04:29:35 AM »
Something I bumped into.

I created a laser beam effect using a flat surface. This mesh is stretched from one point to another and the UV-coords are properly adjusted. This all works great, but I'm having a problem with one thing. The mesh needs to rotate in such a way that the one surface is always facing the camera, while still keeping it's orientation from the one point to the other.

It's rather difficult to explain, so I attached a screenshot for clarification.

Thanks in advance.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #1 on: May 17, 2014, 06:06:17 AM »
OOOOOOOO!!!!! 

i don't have an answer just yet... but i'm really luvin'
those anticipatory scenes...  Rocket Rumble 2, yes!!??   ;D ;D

i hope ... i hope... i hope...


--Mike
« Reply #2 on: May 17, 2014, 06:23:48 AM »
those anticipatory scenes...  Rocket Rumble 2, yes!!??   ;D ;D

Yep.  ;D

Rocket Rumble OE2, with more portals, UFOs, meteors, stars...
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #3 on: May 17, 2014, 06:37:25 AM »
ALLL RIIIIGHT!!!!   ;D

a lil rethink might be require here...  the approach (using a stretch mesh) to
get a laser beam might be worth reconsidering...

i would go with particles... 

they can be fast enough and have little effect on performance... and can give you the laser effect that
i think you are looking for...

find attached something i did a while back that may work.... 
experiment with different particles, speeds, lifetimes, etc to get the exact effect you are looking for...

raise the group object, rotate it around to make sure the visuals check out...

--Mike
« Reply #4 on: May 17, 2014, 08:54:15 AM »
Thanks Mike, appreciate this.

Unfortunately, Oddity Engine has some troubles with dynamically rerotating particles, therefore they're not really an appropriate solution...
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #5 on: May 17, 2014, 10:24:31 AM »
oh... you're doing this in Oddity... sorry
i'm sure you're more knowledgeable with Oddity than i am...

i'll take a look though...

sidenote... you got me started with designing a ray gun in RAD  damn you ;D  ;D


--Mike

« Reply #6 on: May 17, 2014, 11:52:19 PM »
Hi Robertoo. The zip file attached contains a muzzle flash skin mesh, the way it is made might be of help. You could also frame animate it to get the desired effect.

n_iron
« Reply #7 on: May 18, 2014, 04:22:25 AM »
Thanks Iron, I'll keep it in mind.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #8 on: May 18, 2014, 08:46:13 AM »
I solved it!

Apparently this is where the 'up vector' in iQuaternionLookAt() comes in.

The logic is as follows:

1. We have point A (the start) and point B (the end).
2. We move the object the to A.
3. We scale the z value of the object to the distance between A and B.
4. We get the rotation as follows:
iQuaternionLookAt(Rot, (B - A), (camLoc - B));

I never really knew what the up vector was for, but it's pretty useful.

Thanks again for your inputs.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #9 on: May 19, 2014, 06:38:29 AM »
dammit!!! i should've been able to figure that out instead of running off
to do some particles stoopidness   ;D   ;D 

i'm getting old... senility setting in  8)

thanks for the info Rob... definitely something to keep in mind...
now work the 'Rumble" can continue...


--Mike
« Reply #10 on: May 19, 2014, 02:17:15 PM »
Hello Robertoo, this game looks amazing :o, You could create the graphics and models, they are very attractive, will be of single player or multiplayer, where can I download the first game, greetings - Thehades24
There is a most powerful driving force than steam, electricity and atomic energy: the force of will

---Albert Einstein---
« Reply #11 on: May 20, 2014, 02:11:51 AM »
 ::)

Check my description. My topic...
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
Pages: [1]