HTML targets switching in truePlay and tS7

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

HTML targets switching in truePlay and tS7 // Archive: Tech Forum

1  |  

Post by razzaq1 // May 21, 2006, 10:05am

razzaq1
Total Posts: 60
pic
Hi,


Here's the problem.

I have 7 different photos each set up as a weblink within the attached shaykhs.rcd (http://www.suficinema.com/video/shaykhs.zip) zip file


The animation works fine except that the web-addesses don't stay stuck to the photos!


The result is that a photo will spawn the wrong thing.......and it changes.


There are 4 url's to websites, and 2 links to .wmv files and one link to a .rm file


They are set up using norm fortier's instructions in my other post on this tech forum 'Can I make objects be HTML links.....'


I just substituted the web address in the 'open browser' portion of that solution.


It works OK in the tS7 scene but not in the .rcd file payed in truePlay.


Can you help me solve this.


Thanks


PS I made a new thread since this is a different problem

PPS I'll upload the .scn file if needed

Post by razzaq1 // May 23, 2006, 11:21am

razzaq1
Total Posts: 60
pic
.....er, sorry to prompt, but I was hoping to get a solution for this one.


Could one or two of you wonderfully supportive Gurus give a hand?


I see NO reason why an object's hyperlink should change at random!


Here are instructions to illustrate the unwanted behaviour.


1. Open the shaykhs.rcd (http://www.suficinema.com/video/shaykhs.zip)file ....zipped (in either truePlay or tS7...I don't know if they both consistently produce an identical 'fault')


2. Don't press START on the Bism'illah Mafouz object yet.


2. Ckick on the left photo. A weblink will spawn, but NOT the one intended.

If you bore down Nazim > Ctrl > OpenBrowser you see that the link SHOULD be http://www.suficinema.com/video/sn/meditation.wmv.

Instead it spawns one of the other addresses linked to one of the other photos.


3. Ckick on the right photo. A weblink will spawn, but NOT the one intended.

If you bore down Hisham > Ctrl > OpenBrowser you see that the link SHOULD be http://www.suficinema.com/video/sh/OAllahOpenYourDoor.rm.

Instead it spawns one of the other addresses linked to one of the other photos.


All the photos have different hyperlinks.


4. Press START on the Bism'illah Mafouz object.


5. Wait till the SAME photos come around again, then click the photos again.


Then try again after a few more revolutions.

The result is that the weblinks change.....randomly.


I havn't worked out if it depends on the number of revolutions or not.


What I need is for each target photo to spawn ONLY its correct link.

It won't be much use as a web portal otherwise.


I'm not trying to force Sufism on anyone........but I DO want to fix this so that I can show Shaykh Hisham and possibly use this as a Web Interface for my SufiCinema.com site.


It's no good if it don't work right, and I'm scratchin' me 'ed trying to solve it before June.


I'm at home in the UK at around 10pm British Summer Time if someone knows how to fix it and wants to help me do it in shared space.

e-mail me if so at pureheartvideo@hotmail.com


I really am happy to have such a support system as this forum.

Even the manual (hardcopy purchased too) can only begin to unfold tS7's possibilities.


Thrilling, huh?!

Post by trueBlue // May 23, 2006, 4:46pm

trueBlue
Total Posts: 1761
pic
I am no expert by any shape or form, but I have looked at your scene and have found the following problems. It seems that you have created your scene with a prior version of trueSpace7. The newest version is 7.1, that said when I open your scene a file is created in my temp folder named fd42_appcompat.txt. A new file is created every time you open it up in truePlay and or trueSpace7.1. The first few letters and numbers will be different then the first one ending with “_appcompat.txt”. You can read what is in this file but I have no idea what this is for. My only guess is that it has to do with being a different version.
Also on a bigger note I have noticed that you have the EntryCamera pointed at two targets. You have scaled the Cat Suit down to .07 in all axis and used that as the second target. If you delete that object your scene file is reduced down by 3.50 MB and it still works as aspected. You can also delete the Turntable, PhysSpace, and PhysEngine all of which do not contribute to your scene. As with your images that open to Links, I suspect that you have not hooked up the control properly because you have two materials being used for one object. Also note that Norm updated the OpenBrowser control you are using the older version of his control.
That said I think you should start over with the new RomanHouse scene that came with trueSpace 7.1. Just save your BismiExtr object and import it into your new scene. As for your images with links just import Norm’s new OpenBrowser control found here: http://forums1.caligari.com/truespace/attachment.php?attachmentid=1403&d=1148131553 (http://forums1.caligari.com/truespace/attachment.php?attachmentid=1403&d=1148131553)
Position and scale where you would like it and then change his image and link with yours. I have done all of the above with my machine and it works fine.

Post by razzaq1 // May 24, 2006, 12:45pm

razzaq1
Total Posts: 60
pic
trueBlue, you're an angel!


Thank you so much for the in-depth and superbly clear response.


You are dead right in what you say. I DID start with the 7.0 RomanHouse, but I thought I'd fixed it by using Dele's response to me in the 'trueplay viewpoint problem' thread of the truePlay forum...here was his quote


I noticed that the "motion lightball" and "motion camera catsuit" objects are giving errors when started and stopped in TS. Those must be from the 7.0 RomanHouse. I think something was changed in 7.1 that made it necessary to adjust the scripting for those buttons. If you right click on the top of those objects, and then right click on the start/stop button, select the properties tab and delete the script %THIS_PANEL% in both the "Script on Up" and "Script-Down" sections, and then right click the top again and select "replace", it should no longer give those errors. Or you can just swap those objects out with the new ones in the 7.1 Romans House scene.


I'd deleted the script and I thought it fixed it. Hence I didn't go through the process of taking the 7.1 RomanHouse as a basis and building on that - as suggested in the quote.


Thanks for the instructions concerning what I can weed out.

I wasn't sure how things were 'put together' back when I started this project, and now, thanks to you all, I have a much better idea of how to proceed.


I remember that in the process of 'hacking' RomanHouse, If I deleted the wrong thing, the movement didn't work, so I left most of it there and just scaled it down or made it invisible :o


God willing, I'll have time on the weekend to implement your instructions, and I look forward to building with the new items mentioned.


Brilliant, mate! ...and you say you're not an expert.

Is your grasp of all this due to prior experience in 3D, or did you pick it up from browsing the manual?


Also, the final - still unanswered - question from the truePlay 'truePlay viewpoint problem' thread (which you also helped with!) was about saving out from tS7 as VRML....which didn't seem to want to play in Cortona VRML player.


Any idea why that doesn't work, or do you know of a VRML player that will load the scene?

It might not animate as in truePlay, but having something that might work directly from a browser-click would be nice until there is a IE plug-in for truePlay.

Post by razzaq1 // May 26, 2006, 4:31pm

razzaq1
Total Posts: 60
pic
Latest update.....


Rebuilt scene using RomanHouse 7.1 and Norm's new OpenBrowser script.


As trueBlue says, the .rcd is now 3.5 Mb instead of 7 or 8.


It still crashes trurPlay on exit. The weblinks still migrate (but more occasionally) and even though I have lights set to invisible in Modeler, the lights appear in Player. You can see them towards the middle of the 'turntable'.


I lost the option of having the turntable spin at a different rate to the Bismiextra, but it plays nice so its OK like that.


I'd like to make the lights invisible in player, and if you have an idea why the weblinks migrate.


It was a lot quicker to set up this time so all the coaching has paid off! :jumpy:


Also my ISP now lets you d/l .rcd directly :banana:

here it is shaykhs.rcd (http://www.suficinema.com/video/shaykhs.rcd)


Anyone know why when truePlay opens it opens BEHIND the browser window.

.....kinda spoils the impact.

Post by stan // May 26, 2006, 5:28pm

stan
Total Posts: 1240
pic
what might be happening to the weblinks is because they are based on widgets, the one behind the camera get clicked because it is in front of the one you see[the image], first in the z order ..
you would need a way to deactivate them when they leave the eye of the camera..the 180 degrees in front of the camera, turned on ...then 180 degrees behind the camera turned off..

Post by SteveBe // May 26, 2006, 9:06pm

SteveBe
Total Posts: 282
pic
Hi razzaq1,

Here's a way to make the lights invisable in player:

1. Select all your lights and click the Encapsulate in 3D button, and give the
new group a name.

2. With the group selected, click the player window title bar and click
the Show Object Attribs button in the Prefs panel.

3. This will open the Objects Render Attributes panel in prefs. Make sure
Enable Obj Mode is checked. Now you can control light visabilaty with the
surface slider.

Post by razzaq1 // May 27, 2006, 12:13pm

razzaq1
Total Posts: 60
pic
what might be happening to the weblinks is because they are based on widgets, the one behind the camera get clicked because it is in front of the one you see[the image], first in the z order ..

you would need a way to deactivate them when they leave the eye of the camera..the 180 degrees in front of the camera, turned on ...then 180 degrees behind the camera turned off..

It seems lke you are right Stan!


I tested your theory by deleting 4 of the photos (the ones behind the viewpoint). The other 3 remaining weblinks run perfectly.


Because the original was 7-sided, the wrong weblink that spawned changed depending on where the animation cycle stopped (the point behind being either left, or right, of a vertex).


I re-arranged the 7 photos into a hexagon (deleting one photo) and gave each photo the OPPOSITE web address. and now the weblink I want is spawned when viewed in Player from the EntryPoint object.

(It's a bit of a 'kludge' having to give the opposite address, but it works).


It seems the link spawned from the ENTRYPOINT object chooses the one 'behind' it.


The camera seems to choose the one ahead of it (I think), but I need to use the entrypoint or an .rcd doesn't inherit the proper starting viewpoint.


Now I've got to make a hexagonal space as lovely as RomansHouse.


I tried taking a 1-seventh wedge (boolean subtraction) and scaling it to be equilateral but it wouldn't work 'cos it's not quite symmetrical.


Time for me to flex those modeling (lack of) skills. ;)


If there is a way of making EntryPoint choose the one AHEAD of it, I'd prefer that, but I don't know how to do that (yet).

Post by stan // May 27, 2006, 12:22pm

stan
Total Posts: 1240
pic
razzaq1..another possibility is to have your entry camera above the wall behind the camera, looking downward abit..then there is nothing behind the camera..

Tomasb is the man to ask about turning your weblink widgets on/off.. ..:)

Post by razzaq1 // May 27, 2006, 3:25pm

razzaq1
Total Posts: 60
pic
______________________________ :)

___________________________:) ____ :)

________________________ :) _________:) /

That's really thinking!------------------------ outside the circle

________________________ :) _________:) \

___________________________:) ____ :)

______________________________ :)

I'll try it

Post by trueBlue // May 27, 2006, 3:27pm

trueBlue
Total Posts: 1761
pic
You can have a Camera open in truePlay. Here is a demonstration. Also you can open RsScn files in truePlay as well.

Post by razzaq1 // Jun 7, 2006, 12:09pm

razzaq1
Total Posts: 60
pic
what might be happening to the weblinks is because they are based on widgets, the one behind the camera get clicked because it is in front of the one you see[the image], first in the z order ..

you would need a way to deactivate them when they leave the eye of the camera..the 180 degrees in front of the camera, turned on ...then 180 degrees behind the camera turned off..


Will someone kindly write me a widget that will choose the LAST entry in the Z order.....


That way I can get my weblinks to fire correctly.


Thanks.


PS latest .rcd file HERE (http://www.suficinema.com/animation/zshaykhs.rcd)


I want to try and show the 'demo' of this on 20 june and it will be lovely if the weblinks work as planned.

Post by tomasb // Jun 8, 2006, 10:53am

tomasb
Total Posts: 261
what might be happening to the weblinks is because they are based on widgets, the one behind the camera get clicked because it is in front of the one you see[the image], first in the z order ..

you would need a way to deactivate them when they leave the eye of the camera..the 180 degrees in front of the camera, turned on ...then 180 degrees behind the camera turned off..


you should not be able to click on widget that is behind the camera. What happends here is that view widget has some depth in the scene (5 units) and thus if the wall with widget is nearer, it gets raycasted before view widget.

Because in tP you cannot change view widget distance, you need to scale whole scene. (technicaly you can write script that changes view widget distance... )


hth.

Post by trueBlue // Jun 8, 2006, 8:10pm

trueBlue
Total Posts: 1761
pic
Here is another idea where you use objects (spheres) instead of your images as links. Open you scene then import this file into your library and then left click and drag into the Link Editor. This is seven spheres that should line up in the middle of each image at the bottom. Each sphere has a different link that will change color (yellow) when you mouse over them. You will have to edit the links to what you would like. You will also have to delete the link controls from your images as well.

Post by razzaq1 // Jun 11, 2006, 3:36am

razzaq1
Total Posts: 60
pic
Thank you for your replies guys,


I'll try them out soon :)

Post by razzaq1 // Jun 11, 2006, 9:49am

razzaq1
Total Posts: 60
pic
Well, I found another way to get my intended result :banana:


I hacked Roman's 'DanceClub' and massaged it a bit


Here's the result haqqani.rcd (http://www.suficinema.com/animation/haqqani.rcd)


It's a bit crude yet, but all the separate weblinks (photos) fire correctly :)


I had to 'invisible' the table object in the 'disco' because I want to eventually replace it with a whirling dervish.


I 'invisibled' the plane too...I want to replace it with a seated figure on a prayer carpet.


Need to find meshes for those two.
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn