Jump to content

Lights and Material configurations


AndrewAndrew
 Share

Recommended Posts

Hi AA, and welcome.  If I may butt-in...

https://www.babylonjs-playground.com/#LB4MVX#2

Line 26... convert to flat shaded... seems to improve the "look".

Is this what you're seeking, AA?  Hope so.  :)

No shadow generator needed, but I really like your inventive mind... trying to use a shadow generator with self-shadows... to get the facet shades.

That's... pretty cool.  Very creative.

Link to comment
Share on other sites

Cool. 

I noticed... that when I was typing line 26... I typed... mesh.con

At that point, the playground's intellisense SHOULD have offered "convertToFlatShadedMesh" as a 'completion' choice.  It wasn't on the intellisense list.

We use the playground's Intellisense/completion system as a resource discovery helper, and in this case, there was no chance for you to discover that command... in that way.

Can anyone explain why CTFSM() wasn't offered in the intelli-list, at that point?

In a docs search... "flat", "flat shaded" ... not good returns.  AA didn't stand a chance of self-finding that little secret method-call.

As a community, we should think about how to make convertToFlatShadedMesh() a little easier for folks to find.  I hope you didn't burn TOO many hours... looking for this command, AA.  Sorry about that. 

I'm going to think about ways to document this better, if possible.  hmmm.

Link to comment
Share on other sites

Just now, Wingnut said:

Cool. 

I noticed... that when I was typing line 26... I typed... mesh.con

At that point, the playground's intellisense SHOULD have offered "convertToFlatShadedMesh" as a 'completion' choice.  It wasn't on the intellisense list.

We use the playground's Intellisense/completion system as a resource discovery helper, and in this case, there was no chance for you to discover that command... in that way.

Can anyone explain why CTFSM() wasn't offered in the intelli-list, at that point?

In a docs search... "flat", "flat shaded" ... not good returns.  AA didn't stand a chance of self-finding that little secret method-call.

As a community, we should think about how to make convertToFlatShadedMesh() a little easier for folks to find.  I hope you didn't burn TOO many hours... looking for this command, AA.  Sorry about that. 

I'm going to think about ways to document this better, if possible.  hmmm.

I think its because the "mesh" object gets interpreted as AbstractMesh, and there's no such function defined, I'm coding in Typescript so I simply casted the mesh as Mesh and it popped out!

 

let mesh: Mesh = <Mesh>meshes[0];
Link to comment
Share on other sites

:)  https://www.babylonjs-playground.com/#LB4MVX#5

Better mousewheel sensitivity. 

Mousewheel inside the sphere... I have the camera minZ set real low.  It looks totally cool, from inside view.  Weird. 

Don't forget control-dragging, to slew-around the arcCam target/pivotPoint.  FUN!

Like you needed all this "artsy" in your thread, eh?

Link to comment
Share on other sites

2 minutes ago, Wingnut said:

:)  https://www.babylonjs-playground.com/#LB4MVX#5

Better mousewheel sensitivity.  Mousewheel inside the sphere... I have the camera minZ set real low.  It looks totally cool, from inside view.  Weird.  Like you needed all this "artsy" in your thread, eh?

If you pay enough attention you can see Tesla's starman somewhere out there

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...