Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Back Ground Object? RB3D (Real Studio games Mailinglist archive)

Back to the thread list
Previous thread: Goodbye....
Next thread: Tactical RPG Update...


Re: Project idea: tactical RPG   -   Lars Jensen
  Back Ground Object? RB3D   -   Chris Dillman
   Re: Back Ground Object? RB3D   -   Lars Jensen
    Re: Back Ground Object? RB3D   -   Frank C.
    Re: Back Ground Object? RB3D   -   Chris Dillman

Back Ground Object? RB3D
Date: 14.01.04 21:01 (Wed, 14 Jan 2004 14:01:05 -0600)
From: Chris Dillman

I can't get this to do anything.

// 3D //
PreviewCanvas3D.camera.position.z = 200
BackGroundObj = new Object3D
BackGroundObj.AddShapePicture p, 1.0

PreviewCanvas3D.objects.append BackGroundObj
PreviewCanvas3D.Background = BackGroundObj
PreviewCanvas3D.refresh

But it works fine if I just add the object to the object list as normal.

Is there something I should know about using a background object?

Re: Back Ground Object? RB3D
Date: 15.01.04 01:31 (Wed, 14 Jan 2004 19:31:05 -0500)
From: Lars Jensen
> Is there something I should know about using a background object?

What Frank said, plus:

http://ljensen.com/rb/3d_readme_framed.htm

lj

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Back Ground Object? RB3D
Date: 14.01.04 21:17 (Wed, 14 Jan 2004 15:17:11 -0500)
From: Frank C.
On 14-Jan-04, at 3:01 PM, Chris Dillman wrote:

> I can't get this to do anything.
>
> // 3D //
> PreviewCanvas3D.camera.position.z = 200
> BackGroundObj = new Object3D
> BackGroundObj.AddShapePicture p, 1.0
>
> PreviewCanvas3D.objects.append BackGroundObj
> PreviewCanvas3D.Background = BackGroundObj
> PreviewCanvas3D.refresh

Backgrounds move relative to the camera, so you have to move the object
back, not the camera (PreviewCanvas3D.Background.position.z = -200).
Also make sure it's oriented the right way (or set renderbackfaces to
true to quickly see if that's the problem).

Some other notes: Don't add backgrounds to a space's objects array, and
always use Update instead of Refresh.

And... Please start a new thread with a fresh message in your mail
client! Replying to an old thread and changing the subject messes up
thread aware clients (like Apple's mail).

Frank.

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Back Ground Object? RB3D
Date: 15.01.04 05:07 (Wed, 14 Jan 2004 22:07:49 -0600)
From: Chris Dillman
>On 14-Jan-04, at 3:01 PM, Chris Dillman wrote:
>
>>I can't get this to do anything.
>>
>> // 3D //
>> PreviewCanvas3D.camera.position.z = 200
>> BackGroundObj = new Object3D
>> BackGroundObj.AddShapePicture p, 1.0
>>
>> PreviewCanvas3D.objects.append BackGroundObj
>> PreviewCanvas3D.Background = BackGroundObj
>> PreviewCanvas3D.refresh
>
>Backgrounds move relative to the camera, so you have to move the
>object back, not the camera (PreviewCanvas3D.Background.position.z =
>-200). Also make sure it's oriented the right way (or set
>renderbackfaces to true to quickly see if that's the problem).
>
>Some other notes: Don't add backgrounds to a space's objects array,
>and always use Update instead of Refresh.

Thanks.

BTW using update seemed to make it appear.

>
>And... Please start a new thread with a fresh message in your mail
>client! Replying to an old thread and changing the subject messes up
>thread aware clients (like Apple's mail).

Im one of the people that find this really really really anoying to have to do.

But I will try if I remember...

It is going to be hard to reset 10 years of quick reply habits :P