Door Trigger Not Working

Door Trigger Not Working

RichJacobUK
Advocate Advocate
1,548 Views
14 Replies
Message 1 of 15

Door Trigger Not Working

RichJacobUK
Advocate
Advocate

Hi All,


I hope you are all well.

 

 

I am currently learning Stingray/Interactive version 2.1.777.0


I am trying to make a door open with a trigger as in this video https://www.youtube.com/watch?v=RIGf2TKVAys


My problem is that when I test the level, the trigger doesn't seem to be working at all.

 

 

In the video Maya was used to create the animated door, I am using Max 2018.


I have created a simple single door animation with an open and close and Ive added a trigger object , as in the video.

 

 

Next , using the Game Exporter , I have exported as 2 clips ( open /closed ) ... again as in the video.

 

 

I have opened Stingray and created a project using the Desktop VR template

create_from_template.JPG 

Next I create a new empty level

 

 

Then I created a simple floor plane in Max ( collapsed to edit poly ) and using the the Stingray connection, I send selection to stingray and drag into the level.

 

 

I then use the Import function in Stingray to bring in the Door fbx animation into my content folder. All of this goes without a problem.


Still following the video , I open the door in unit editor and apply the correct settings.


I make the trigger invisible

door_trigger_Unit_Editor.JPG 

door_Unit_Editor.JPG 

Then set up the Unit Flow

 

door_unit_flow.JPG

At this point I save the level and close the Unit editor.

 

 

Next I drag my door object into the level and place it at 0,0

 

Door_in_Level.JPG

As far as I can tell I've followed the tutorial to the letter.


But when I test level the door animations are not trigged. I was wandering if maybe it was the template I am using. I am building the VR environments to be used with Oculus Rift.

 

 

Is there something I can look out for in the Log console that will indicate the problem ?

 

 

Could it be anything to do with how I am building the door object/trigger in max . Or in the way I export the FBX ?

Failing that can somebody please take a look at the scene for me.


Any help would be much appreciated.

 

Kind Regards

 

 

 

Reply
Reply
0 Likes
1,549 Views
14 Replies
Replies (14)
Message 2 of 15

raiden_xavier
Autodesk Support
Autodesk Support

Hi @RichJacobUK,

 

Hope you are enjoying your stay in the forums.

 

First up please ensure you are using version 2.1 of Stingray/Interactive.

Next, check the 2 images below. Most people I have helped with this are not aware of the Character Trigger setting.

Lua example:

trig-lua

 

 

Shape template set to 'Character Trigger'. Default is typically 'Trigger'.

char-trig

 

That should do it. If not, please let us know.

Hope that helps.

 

Best regards,

Reply
Reply
0 Likes
Message 3 of 15

RichJacobUK
Advocate
Advocate

Thanks for your reply @raiden_xavier

 

Not sure why, but the images you included are not showing up in the post for me ??

I have managed to operate the trigger with an object that i pick up with the Oculus Touch Controllers, which is great and very useful for me , as I will be designing a door that is opened with a keycard.

 

But I still havent worked out how to do it with an object attached to the HMD. If I use a Character Template to begin with then it works fine, but thats due to there being a character in the template. My ideal scenario is to Use a Desktop VR template and attach an object to the HMD Pos and make it a character. Thats the understanding I have anyway 🙂

 

Thanks for your time and input. much appreciated.

 

Reply
Reply
0 Likes
Message 4 of 15

raiden_xavier
Autodesk Support
Autodesk Support

Hi @RichJacobUK,

 

I attached the images. You should be able to see them hopefully!

img: Luaimg: Luaimg: triggerimg: trigger

 

I think you need someone with more in-depth knowledge to chime in and help with your request however.
Perhaps @bruno.landry could point you in the right direction?

 

Best regards,

Reply
Reply
0 Likes
Message 5 of 15

bruno.landry
Autodesk
Autodesk

Hello,

it's probably because your are us a VR template, I'm not sure there's a hidden character geometry in the VR template to activate the trigger (when the trigger is set to <character_character>.

Let me check if it's possible.

 

 

______________________________________



Bruno Landry
Product Manager - Autodesk 3ds Max
Reply
Reply
0 Likes
Message 6 of 15

RichJacobUK
Advocate
Advocate

Hi ,

@raiden_xavier  

 

@bruno.landry 

 

Thanks for your input guys. 

Reply
Reply
0 Likes
Message 7 of 15

RichJacobUK
Advocate
Advocate

Hi @raiden_xavier

 

Quick Question.. I'm in the Level Flow console and I'm just quickly trying the setup that you posted. I cant find the "Animation Event " node like the one you used. 

 

Is it supposed to be in the Animation menu

 

anim_event.JPG 

Is this due to the project template I am using ?

 

Thanks in advance .

 

Kind Regards

 

Reply
Reply
0 Likes
Message 8 of 15

Audio-Design
Alumni
Alumni

@ Bruno - I Believe your correct on this.  The HMD might have a piece of geo in it acting as the collier that may not be setup.  Check the unit of the HMD to see if it is.   Also you can try setting up the door with in a different way (push a button or collide with the controller) to help trouble shoot.

Reply
Reply
0 Likes
Message 9 of 15

RichJacobUK
Advocate
Advocate

Hi ,

@Audio-Design

 

Thanks for your input .

 

I found the HMD unit and had a look at how it was set up.. before I start messing with anything or abandoning the VR Desktop Template altogether  , I wanted to show you what I have setup at present.

 

HMD_Unit.JPG 

HMD_Unit_Editor.JPG 

HMD_Unit_Editor_Actor.JPG 

HMD_Unit_Flow.JPG 

It seems like its setup to be able to activate a trigger but is there something missing from this setup  ? 

I am very new to Stingray/interactive 🙂

 

If the only way that the trigger can be activated by the HMD is to link an object to it.. would I achieve that in the HMD's Unit Flow ?

Reply
Reply
0 Likes
Message 10 of 15

RichJacobUK
Advocate
Advocate

Just to Add to my last reply above ...

 

Spent the day trying to understand flow nodes and although its been very useful I still haven't managed to workout how to Link my collision object to my HMD pose. I've been told this is a simple process but I'm not convinced  🙂 .I do feel im getting closer though. Im leaving the office soon so wanted to just put up here some screenshots of where I am atm . 

 

I have an animated fbx containing a door frame, double doors and collision trigger object ( simple cube ).

Ive set up my scene in Interactive . Imported the doors FBX . Set the unit flow up , added a sphere and set it up to trigger the doors . At present in VR I have to pick up the sphere and use it to open  and close the doors . 

 

I need to now Link the sphere to the HMD pos .. this process has been outlined to me by Shanii but ive not been able to find the information i need to do this successfully.  What I need is an illustration of the Flow nodes needed to achieve this . 

 

Character_Trigger.JPG 

Character_Trigger_Unit_Editor.JPG 

Character_Trigger_Unit_Flow.JPG 

Character_Trigger_Sphere.JPG 

Surely somebody has this setup already for the oculus template and can show me an example of the unit flow needed to achieve what I need. Thanks in advance.

 

Kind regards.

Reply
Reply
0 Likes
Message 11 of 15

ThijsSchade
Participant
Participant

Dear Rich,

 

Did you ever manage to attach the sphere to you HMD?

I am looking for the same info and get half hints on how to do it, as if I am stupid.

Just can't find the exact info, so I hope you have it.

 

Regards, Thijs

 
Reply
Reply
0 Likes
Message 12 of 15

RichJacobUK
Advocate
Advocate
Hi Thijs
No I haven't managed to get that to work yet. I know exactly what you mean tho. I came to the forum after exhaustively searching for the answer and trying to work it out logically . But I ended up feeling like I was given clues to the answer which is so not helpful when you are already lost. I totally appreciate people giving away their knowledge for free and its really how things progress properly. So if anyone is out there and feels ok about teaching the rest of us then I think we could progress. Other than that it seems we have to go through the same struggles over and over 🙂

I hope you find a solution . I have found a course online for 3ds Max Interactive and Im trying to convince my firm to sign me up to it. It's a 3 day course and looks very comprehensive.
Good Luck with it all. Keep me updated please.

Regards
Reply
Reply
0 Likes
Message 13 of 15

ThijsSchade
Participant
Participant

I have the feeling it is an interesting piece of software, but with some serious flaws.

 

I had a 3 day course from Autodesk, but even then there were differences in unit flow nodes betweeen the same versions software. Very weird.

 

I will keep searching.

Reply
Reply
0 Likes
Message 14 of 15

Anonymous
Not applicable

Безымянный.png

Reply
Reply
0 Likes
Message 15 of 15

Anonymous
Not applicable

Безымянный1.png

Reply
Reply
0 Likes