How to limit movement of camera by some geometry?

Where is this number?

Yep, it seems that it work!

1 Like

Hi, it works and everything is ok, but when I`m trying to increase the position of camera above the floor its falling down, pls could you explaine why!?

https://www.babylonjs-playground.com/#RRBB09

1 Like

Because gravity helps apples to fall down :slight_smile:

The camera is just working fine. All issues about default values here are because your scene scale is huuuuuuuuge. Your room is more than a km!

Here I spawn at Y = 1km, and the ellipsoid size Y = 500m: https://www.babylonjs-playground.com/#RRBB09#1

Thank you!!!

here a “cleaned” version https://www.babylonjs-playground.com/#RRBB09#2

2 Likes

Very good, thank you again!!!

Pls could you advice me articles of how to manage and set up the textures!?

There are a lot of articles, but I need very simple first of all…

The easy way for a cg designer is to configure materials, at least the first pass, through the 3D modeler, and use BJS just to do final tweaks.

1 Like

So I need to setup textures in my 3D programm and then in BJS I can only add some details effects, am I right?

Do you see the glosiness in my rooms that you have corrected, how to set up it!?

Remove only and you’re good.

As for tweaking materials once in BJS, RTFM :smiley:

Sorry I dont understand how to set up the glosiness of the walls in current scene?Pls could you show me that?

  • (not so optionnal at all) use a good naming convention to know what’s you’re doing
  • use:
var myWonderfulMaterial= scene.getMaterialByName("myWonderfulMaterialName");
myWonderfulMaterial.roughness = 0.5;
1 Like

I`m sorry, pls, could you show it in PG!?

@Ivan_Stratiichuk you’ve done an amazing job at making your first repro in the playground :slight_smile: ! Well done!

1 Like

Thank you again!

Pls could you explain me this things and in what folders it should be situated!?

How roughness should work!? bigger than 1 more roghness or less or how!?

image

Hmm, I don’t want to be rude but I can’t explain you 3D basics: before going deeper in webGL, which can be rude even for artists specialized in realtime, you have to learn some basis (examples from what you’ve highlight above: naming your elements, what is PBR, hexadecimal syntax, etc).

This will help you a lot to understand what’s you’re doing. You can even play with Unity3D/Unreal which are more reachable during first steps, and then you’ll have all the tools at your disposals to tweaks nice webGL scenes :wink:

1 Like

First of all: I`m not realtime artist, maybe I will…

Second: No need to be rude or polite, I`m here to study what I need…

Last one: thank you for any info…