Author Topic: Simple model request for testing  (Read 4377 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Simple model request for testing
I require a simple POF model for the purposes of testing the look_at feature, as described in Mantis #3115 and GitHub pull request #530.  Could any of the HLP model makers help me out?  It requires no textures and can be composed entirely of model primitives.  All it needs are a series of submodels arranged in a certain way, in a certain orientation.

I've created a very ugly prototype by messing around in Sketchup for 15 minutes.  See the attached picture and model files in Sketchup, Collada, and 3DS formats.  This model is only for reference purposes; I shudder to think what might happen if someone actually created a POF based on it. :)

The main model should be a T shape, where the top of the T is pointed in the positive Z direction and the cross-bar of the T is along the X axis.  On either side of the T's cross bar should be individual submodels (cubes or spheres).  These two submodels will serve as targets for the submodels that have look_at properties.  The T should lie entirely on a flat plane, and the centers of the two submodels should be on that same plane.

On the bottom of the stem of the T should be a vertical pivot point, on which three arrow submodels are mounted.  The arrows should be made of shapes that clearly point forward in the positive Z direction, and the point of the arrow should be aligned with its centerline.  The three arrow submodels should be able to pivot left and right on the Y axis.  There should be one arrow that is on exactly the same plane as the T and the two target submodels, one arrow a short distance above it, and one arrow a short distance below it.

Note: it should be possible to tell whether each arrow is rightside-up or upside-down.  I illustrated this in Sketchup by giving each arrow a peaked "roof".  The coplanar arrow and the top arrow should be rightside-up.  The bottom arrow should be exactly 180 degrees upside-down, but still aligned with the axes (in contrast to the Sketchup model where the bottom arrow is not quite rotated 180 degrees).

Thanks for your assistance!  Your contribution will allow me to close out the look_at feature, which should lead directly to the release candidate stage of version 3.7.4.

[attachment DELETED!! by Strong Bad]

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Simple model request for testing
:confused: I uploaded this when I did the bug report Goob.

http://scp.indiegames.us/mantis/file_download.php?file_id=2575&type=bug

It has look at all set up and ready to go.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: Simple model request for testing
It turned out that look_at wasn't set up correctly according to vector math, and that model was using those incorrect vector calculations.
« Last Edit: February 09, 2016, 11:52:41 am by Cyborg17 »

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
More specifically, the Praetor submodels seem to have their orientations flipped or offset by 90 degrees.

The Praetor model was very useful throughout the majority of dumb_rotate and look_at coding, but now I've run into the issue where the submodels simply aren't pointing in the proper direction.  I decided to run a simple test using the Orion model and the submodels point exactly where I expect them to, whereas the Praetor submodels don't.  Now I want to verify this with a model that unambiguously has submodels lined up in the standard orientations.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Any takers?

I see that model_exports.zip has been downloaded by two people, so I assume both are competing to see which one can finish it and post first. ;)

 

Offline Nyctaeus

  • The Slavic Engineer
  • 212
  • My "FS Ships" folder is 582gb.
    • Minecraft
    • Exile
Re: Simple model request for testing
I've seen it and I'd like to help... But to be honest, I don't get it :P. I mean I don't understand which model should me parent, which submodel and stuff. I have no idea how to set hierarchy properly, based on your description.
Exile | Shadow Genesis | Inferno | Series Resurrecta  | DA Profile | P3D Profile

Proud owner of NyctiShipyards. Remember - Nyx will fix it!

All of my assets including models, textures, skyboxes, effects may be used under standard CC BY-NC 4.0 license.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
The T, plus the vertical pillar, should be the main model.  The submodels are the arrows and the spheres/cubes on the sides of the T.

Black Wolf is taking a look at it though, so your help may not be needed.  But thanks. :)

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Simple model request for testing
Color coding is your friend...
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Simple model request for testing
Any takers?

I see that model_exports.zip has been downloaded by two people, so I assume both are competing to see which one can finish it and post first. ;)
I'm the second taker.

Here's what I have now:



I spent a lot of time unifying the T, the big pillar, the middle arrow, and the cylinders at the side. However, I just now removed the cylinders from the side and replaced them with subobjects.
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Ah, brilliant.  Thanks, this is exactly what I wanted. :)

Yes, the two cylinders at the side, as well as all three arrows (not just the top and bottom) should be subobjects.

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Simple model request for testing
Done.

Is this the orientation you wanted? (Green = Y, top of screen is bow (front), bottom of screen is aft (back))



EDIT: I changed the orientation so that the top of the "T" points forwards. Here's the POF.
« Last Edit: February 15, 2016, 02:37:56 pm by Talon 1024 »
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Thank you, this looks perfect. :)  I will test it post-haste.

EDIT: Eek, this is way too small!  Could you scale it up about 100x?  The size of a Fenris would be good.

EDIT2: Also, it looks as if you simply imported the Sketchup model, rather than creating three separate arrow submodels and duplicating them.  Can you tell me whether the bottom arrow has an "upside down" orientation relative to the others?
« Last Edit: February 15, 2016, 08:54:27 pm by Goober5000 »

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Simple model request for testing
A recent build of PCS2 can scale up models without needing to go back into the modelling program.

I was expecting you to edit the subobjects in PCS2 anyways, since I have absolutely no idea how look_at works.

EDIT: New version of POF. Now much larger, and uses the same mesh for all 3 arrows. The arrows' pivot points have been slightly adjusted, as well.
« Last Edit: February 15, 2016, 09:10:57 pm by Talon 1024 »
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Hmm.  Are the pivot points in the center of the submodel?  And does the point of the submodel align with the submodel's local axis?  Because the submodels are pointing somewhat askew, and I wonder if it's because the submodel's local coordinate axes aren't precisely aligned.  See the attached screenshot.

This is why I suggested using my Sketchup model as a prototype, rather than converting the Sketchup model directly.  I made no attempt to line up the corners.

I see that the bottom arrow is also aligned the same way as the top two arrows.  Can you flip the bottom arrow upside-down, i.e. 180 degrees around the Z axis?  Currently all the models are pointing in the correct general direction, but I want to test whether that direction is orientation-dependent.

[attachment DELETED!! by Strong Bad]

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Simple model request for testing
New version of POF.

This is where the pivot points for the arrows are. The pivot points for the cylinders at the sides are in the center of each cylinder.
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Hmm.  It appears that, even though the bottom arrow is now rotated, it still has local coordinate axes that are aligned with the model's coordinate axes.

I had thought that flipping the bottom arrow upside-down would also cause the submodel's coordinate axes to be upside-down relative to the model's.  Is it possible to do this?

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: Simple model request for testing
I don't know if that's possible or not. I'm thinking that it might be possible through use of the animation code for initial rotation, but as far as I know, it's only possible to use that code to set an initial orientation for multi-part turrets.
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Here's what MjnMixael had to say on IRC:
Code: [Select]
[20:37] MjnMixael Goober5000, if I understand that thread correctly, he'll need to reset the xforms (Blender calls that something different) in order to get the submodel axes to change with the geometry
[20:37] MjnMixael i think
[20:37] MjnMixael it's possible that I have no idea

This is consistent, at least, with my experience: I know that submodel orientations can be changed, but changing them in PCS2 doesn't work (that is, the shape is rotated, but the axes remain the same as the world axes).  This leaves the source modeling program as the only option.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Simple model request for testing
PCS2 will complain and refuse to import ("instance geometry not found") any geometry that's axes are not the same as the world axes (this is what resetting the x-form does no?). In which case you'd have to try some POF converter that isn't PCS2. That is, if it's not a limitation/requirement of the POF format itself that things be that way.
Could be totally wrong and have no idea what I'm talking about but that seems to be what I've observed when converting things.
(´・ω・`)
=============================================================

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Simple model request for testing
Err.  Hmm.

Well, then, is there anything different about radardish01 (the one on the bottom) and the other two radardish submodels on the retail Orion model?  Because I gave all three of them look_at properties to look at a certain turret.  The two dishes on the top of the Orion are looking at it properly, but the dish on the bottom is looking 90 degrees away from it.