Jump to content
The Dark Mod Forums

Origins of prefab func_static parts don't rotate properly


letran
 Share

Recommended Posts

I changed an existing prefab (mirror on stand) to be a larger floor standing version. I saved it as a prefab from origin 0,0,0 and it appears fine in the prefab viewer etc.

However, when i import it into my current map and rotate it, one part rotates the origin correctly but the other two still remain oriented in the XYZ direction and don't rotate accordingly.

 

It means the tilting is at a crazy angle.

 

How can i set the correct origin rotation on the two parts and make it stick?

 

thank you.

 

post-21506-0-04025400-1513629874.jpg

Link to comment
Share on other sites

You create a nodraw brush and make i a func_mover like a door or handle, then you bind the mirror two it - I think maybe the func_mover is missing from the prefab?

 

I originally made that prefab, and to be honest we need a batter 'mirror' material. The silver serving tray I used has a broken material, it reflects everything at the wrong angle.

 

What we need is -

  • An actual desktop and floor standing mirror model
  • A replacement mirror texture

Another issue existing the reflection is very perf heavy, so either the mapper has to be carefull where they place it, or we come up with two textures full reflection and fake reflection.

 

We would need help from a modeler and a team member.

Link to comment
Share on other sites

I changed an existing prefab (mirror on stand) to be a larger floor standing version. I saved it as a prefab from origin 0,0,0 and it appears fine in the prefab viewer etc.

However, when i import it into my current map and rotate it, one part rotates the origin correctly but the other two still remain oriented in the XYZ direction and don't rotate accordingly.

 

It means the tilting is at a crazy angle.

 

How can i set the correct origin rotation on the two parts and make it stick?

 

thank you.

 

attachicon.giforigin rotations.JPG

 

Are you using the most recent version of DR? Prefabs should be created already merged as a group, which means they should rotate together.

Link to comment
Share on other sites

When things are in a group, they appear blue when you select them. It doesn't look like the entities in your screenshot are grouped.

Link to comment
Share on other sites

I originally made that prefab, and to be honest we need a batter 'mirror' material.

Did you not see the mirrors and reflections in Vanished One's "In the Black"..?

They were great - especially the puddles of water.

 

// also the rotation origin bug in dr24 appears to have been fixed in dr25

Edited by teh_saccade
Link to comment
Share on other sites

There are several buttons at the top that handle the rotate behaviour of entities.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

Springheel - I broke that apart just to take the screen grab.

 

Perhaps someone can try importing that prefab (the existing mirror and stand) and see if it does the same. Id be interested if someone running a beta of 2.5.0 DR has a different outcome.

 

Cheers

 

I imported it in 2.04 and it rotated fine for me.

 

Wait, I reread your original post...did you say you resized the models in your prefab? Resizing models can produce some glitchy results.

Link to comment
Share on other sites

 

I imported it in 2.04 and it rotated fine for me.

 

Wait, I reread your original post...did you say you resized the models in your prefab? Resizing models can produce some glitchy results.

 

I did scale the mirror (tea tray) part. But the others i reverted to worldspawn, changed dimensions then changed back to func_statics and re-applied the parameters.

 

It's strange that Bikerdudes original prefab doesn't work for me?!

 

I'll install the DR 2.5.0 pre2 release tonight and retry.

 

Thanks for helping out guys - getting there !

 

BTW - here are the prefabs for anyone to try -- https://drive.google.com/drive/folders/1rYIHbuSwrpc_db8mo9LUaS1ptu4HkMi3?usp=sharing

Edited by letran
Link to comment
Share on other sites

You do not necessarely have to revert func_statics to worldspawn if you want to make changes. You can use tab to alternate through the primitives.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I don't see the problem in your video either. The entire prefab seems to be rotating together, as expected.

Link to comment
Share on other sites

I'm afraid i'll need to find some free screen recording software. In the meantime i've done two screengrabs which attempt to show the issue. Not too clear though i'm afraid.

If anyone could recommend some open source screen recording software for windows i'd appreciate it.

 

thanks.

post-21506-0-07057700-1513868053_thumb.jpg

post-21506-0-07011100-1513868054_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • freyk

      Some years earlier i created some launchers for TDM. uploaded today some new sourcecode and executables on my github repo.
       
      · 0 replies
    • Epifire

      Say, I know it's been a while since the site got overhauled from the crash. But did we ever figure out if/how to get the recent topics & replies list back? It's not a total deal breaker but it was nice for becoming a thread creeper again...


      · 2 replies
    • Epifire

      Some of you who've been on the TDM discord know I was out of work last Winter, just putting in hrs for the developer portfolio. Currently I've been working a seasonal job to pay the bills and now I'm finally in my last week before I get bumped off. Things will be tight but I'm planning a long off period to make as much content as I can. Big plans in Unreal Engine as well as my most ambitious TDM collab yet! Never been so excited to be a stuck at home to pursue my life's work. With a lotta time and maybe some luck, I'm hoping to get enough art work done that I may start applying around to studios.
      · 4 replies
    • STiFU

      I finally got around to play Prey and I truly loved it. It is an incredible homage to System Shock and Deus Ex. While the gameplay is not en par with those two titles, the game makes up for that with its well written lore and story. The whole "world" just feells so authentic and it features a ton of really god environmental story-telling. Recommended for every immersive sim fan, i.e., everyone on this forum.
      · 2 replies
    • jaxa

      Alder Lake has arrived:
      https://forums.thedarkmod.com/index.php?/topic/18055-2016-cpugpu-news/page/15/&tab=comments#comment-466190
       
      · 0 replies
×
×
  • Create New...