Author Topic: Fun With Ship Models  (Read 5341 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
I found two beautiful functions while perusing the source code - ship_change_model, and change_ship_type. So I made them into sexps...

change-ship-model - changes the model used by particular ship or ships
change-ship-class - changes the class of a particular ship or ships

Normally, these would be mere oddities that could be fun to play with.  But I've already thought of two uses for them...


The RoboTech mod.  Now I haven't followed this much, but I have heard that they had two main obstacles to implementation in Freespace - departure into hangars, and model manipulation (a la Transformers, perhaps? :nervous: )  With end-mission and distance-ship-subsystem, they can exit into hangars, and now with these sexps, they can change around their models. :cool:


Cloakable Ships. ;7 This is made especially possible by Bobboau's animated texture feature.  Take a generic ship model, say the GTF Pegasus (it's already stealth!).  Copy and reskin it with animated textures displaying a cool cloaking effect.  Then copy and reskin it yet again with invisible textures.  Now to cloak the Pegasus, simply use change-ship-model to toggle the cloaking effect model,  then after a second or two use change-ship-model again to toggle the invisible model.


So modellers and skinners, get cracking!  I want to see some cloaking effects. :cool:

 

Offline Knight Templar

  • Stealth
  • 212
  • I'm a magic man, I've got magic hands.
A distortion effect would be awesome for ships :D
Copyright ©1976, 2003, KT Enterprises. All rights reserved

"I don't want to get laid right now. I want to get drunk."- Mars

Too Long, Didn't Read

 

Offline Nico

  • Venom
    Parlez-vous Model Magician?
  • 212
Quote
Originally posted by Goober5000
The RoboTech mod.  [...]and model manipulation (a la Transformers, perhaps? :nervous: )  With end-mission and distance-ship-subsystem, they can exit into hangars, and now with these sexps, they can change around their models. :cool:


that'd be cool, we already could do that, but I think it was a direct coed modificatoin or something. But there's not been any news lately from the team, so...
SCREW CANON!

 

Offline Fury

  • The Curmudgeon
  • 213
Although this is a neat feature for "transforming" ships, but it has one drawback if I got it right from Goober's explanation...

There's no animation during changing sequence, and that sequence is instaneous. Looks damn odd if a ship has shape A but second later it is shape B.

Animated shape change is what we need for TBP, for Vorlon ships for example.
OK, perhaps I did not got the terms right, but hopefully you still understand what I mean, yes? :D

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
Ahh, useful for we tappers. For beast infection, and mimics.

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Mr. Fury

Animated shape change is what we need for TBP, for Vorlon ships for example.
OK, perhaps I did not got the terms right, but hopefully you still understand what I mean, yes? :D


Ray Harryhausen to the rescue!

Quote
Originally posted by Goober5000

Cloakable Ships. ... .Now to cloak the Pegasus, simply use change-ship-model to toggle the cloaking effect model,  then after a second or two use change-ship-model again to toggle the invisible model.


If you're willing to slideshow it a bit, perhaps some stop motion slideshow type stuff will do? :D
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline elorran

  • Big Daddy Tap
  • 28
  • Peter piper picked a peck of pickled peppers
Interesting... indeed. :nod:
Thats no moon... hes dropped his pants!

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
mikhael: There's not much to show.  I made a sample mission with a Herc mutating into a Herc II.  The Herc was flying along, and all of a sudden, *pop* it became the Herc II.  Instantaneous. :) If I was a good texturer, I might be able to make a cloaking effect and slideshow that, but I don't texture. :p


Mr. Fury: Yes, the change is instantaneous, but the animated textures might help that a bit.  Make a model that's as big as the bigger ship to transform into, and then animate it so it looks like it's changing from one ship to the other.

Or there's the possibility of doing multiple model changes back-to-back (frame-by-frame!) to simulate a transformation.  That might work, but I'm not sure how much it would stress the engine. :)

 

Offline Killfrenzy

  • Slaughter-class cruiser
  • 210
  • Randomly Existing
Would it be possible to 'leech' some source code from Bridge Commander or Klingon Academy? Or even Starlancer?
Death has more impact than life, for everyone dies, but not everyone lives. [/b]
-Tomoe Hotaru (Sailor Saturn
------------
Founder of Shadows of Lylat

 

Offline Petrarch of the VBB

  • Koala-monkey
  • 211
Quote
Originally posted by Killfrenzy
'leech'  


LOL!

I'll have to add that to my list of "alternatvies to stealing". Lets see:
Liberate, emancipate, comandeer, confiscate, win, freemantle, relieve of, and now "Leech"

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
:lol:!

and -- abscond with, appropriate, usurp...


Why would we need any other source code?  What did you have in mind, Killfrenzy?

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
The problem is, that animating anything would mean we would have to start messing seriously, with the POF format. up and until now, we have only added new chunks of relative short sizes.

Animation would mean, that

1 first we design a new POF file format, maybe like Quake´s MD files that has animation INFO built into them, in order to give the artist complete controle. Also we would have to think of a way to let the FRED2 mission designer chose what "frames" or "sequences" of the animation to play.

2 we alter the engine to animate these.

3 we come up with something really clever so that we don`t have to do 3-4 LOD animations for each model, or we throw away the LOD system and design our own Engine LOD code, that is present in many games today.

The size of the model would more than tripple, and then we run into memory issues.

its really a task for somebody who has done something like this before, and someone who has a clear idea of what to do.

I understand the technicalities of animation, but not how to actually code it.
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Do you mean with the model switching or with the textures?  Bobboau already implemented animated textures.

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Quote
Originally posted by Goober5000

Or there's the possibility of doing multiple model changes back-to-back (frame-by-frame!) to simulate a transformation.  That might work, but I'm not sure how much it would stress the engine. :)


This is exactly what I meant by slideshow, Goober5000.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
there is already a rotational animation system in there, we could use that to get most of the stuff doable, I don't think getting translation would be all that hard after that, I started to look into an animation system but I I got boared when I was haveing trubles getting my propertys strings getting parsed corectly
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Quote
Originally posted by mikhael
This is exactly what I meant by slideshow, Goober5000.


Oh!  I thought you meant post a few screenshots illustrating the effect. :)

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
That's sweet, Goober! :D Good thinking too, thinking of those applications...

Quote
Originally posted by Goober5000
The RoboTech mod.  Now I haven't followed this much, but I have heard that they had two main obstacles to implementation in Freespace - departure into hangars, and model manipulation (a la Transformers, perhaps? :nervous: )  With end-mission and distance-ship-subsystem, they can exit into hangars, and now with these sexps, they can change around their models. :cool:


I think they actually engineered a technique to do this already, to do with destroying subsystems or LODs or something like that; but this will be infinitely better, I think. :D Again, good work. :yes:
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Thanks!  I actually just stumbled upon some code that was already there and made it more accessible, but I appreciate the appreciation. :)

Actually, if you want to thank someone, thank Bobboau.  Those animated textures will allow for some really cool cloaking effects. :cool:

 

Offline Setekh

  • Jar of Clay
  • 215
    • Hard Light Productions
It's thanks to people like you that I really can't wait to get really back into FS. :nod: Make sure you keep working on the SCP while I'm away, eh? :)
- Eddie Kent Woo, Setekh, Steak (of Steaks), AWACS. Seriously, just pick one.
HARD LIGHT PRODUCTIONS, now V3.0. Bringing Modders Together since January 2001.
THE HARD LIGHT ARRAY. Always makes you say wow.

 

Offline DTP

  • ImPortant Coder
  • 28
    • http://www.c4-group.dk
Quote
Originally posted by mikhael


This is exactly what I meant by slideshow, Goober5000.


The proposed Slideshow would´nt solve "sudden change" problem.

It will still look funny. and dont forget that you would have to have, all those models in the TBL file, which is currently restricted to 128 polygon model ships.

what are needed to do this is a redesign of the POF format itself, while maintaining backward compatibility.
VBB member; reg aug 1999; total posts 600.
War is a lion, on whos back you fall, never to get up.
Think big. Invade Space.