Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
DammitKenny

Need help embedding collisions into a model

Recommended Posts

DammitKenny
I'm trying to learn how to build collisions around native models that don't normally have it. For example, I'm using a model named `v_49_motelmp_bed.ydr`.


Nj57p4K.png


This model does not have collision embedded into itself. Instead, the collision for this model comes from `v_motel_mp.ybn` which attaches to the interior of `v_49_motelmp_shell.ydr`.


BuWymZ2.png


If I spawn the bed into the game as-is, I can walk right through it


tMjmVzh.jpg


My thinking was to use 3D Studio Max with GIMS and emded my own collision boxes into the model like I've seen done with other native items. I imported `prop_tv_cabinet_03.ydr` into 3D Studio Max to see how it's structured because this model has collision emdedded already. I used that model as a guide to setup and structure my new bed model and threw in a large collision box to test with.


DNisBIW.png


I exported the model out of 3D Studio Max and used OpenIV to convert it to a `ydr` file but when I stream the new model into the game, there's still no collision.


gSSOJ1u.png


Can anyone help with this? Every video, thread or article on this subject seems to be super vague or outdated. I also bought and tried zmodeler 3 with the same results.


Any help or direction with this would be greatly appreciated. I've been debugging and researching this issue for days.

Share this post


Link to post
Share on other sites
Bob_74

I would like to try to help you but I'm unable to even spawn "v_49_motelmp_bed"...

How did you manage to do that?

 

RPH spawn command tells me the model is invalid and using SHVDN World.CreateProp doesn't work (Prop.Exists() returns false).

I tried to add bone to the model, OpenIV see the bone but the game refuse to create the prop.

Edited by Bob_74

Share this post


Link to post
Share on other sites
DammitKenny

You might have to spawn it at these coords (x = 152.2605, y = -1004.471, z = -98.99999), which is where the original model can be found. I'm also using FiveM, so I'm able to stream that model anywhere in the world. I've been inching closer and closer on getting this to work but still no dice. This is my max file in case anyone would like to go over it and see if there's something I might have missed.

Share this post


Link to post
Share on other sites
Bob_74

Seems like you use 3dsmax 2016, I've had issues with 2016 version and GIMS so I went back to 2012.

Can you save as an older max format?

 

EDIT: I actually needed to go to this location to be able to spawn this model...

I was totally unaware of this kind of behaviour!

Edited by Bob_74

Share this post


Link to post
Share on other sites
Ezio Baggins

So, solution ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • 1 User Currently Viewing
    0 Members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.