Jump to content

Projective Texturing


jessepmason
 Share

Recommended Posts

Hello everyone... sorry for another noob question but I am learning and loving babylon! :P

I am curious if babylon can project a texture onto multiple objects... similiar to how this is: http://playground.babylonjs.com/#1215MA

but I want to be able to project from a specific point in the scene.. not from the active camera but maybe another camera in the scene?

 

Thanks!

 

Link to comment
Share on other sites

Maybe the mirrorTexture or the reflectionProbe thingies might help you, too?

 

mirrorTexture: http://doc.babylonjs.com/tutorials/01._Advanced_Texturing (under the heading "mirror" pretty much at the top :P )

reflectionProbe: http://doc.babylonjs.com/tutorials/How_to_use_Reflection_probes

 

And wouldn't it somehow be possible to use a dynamicTexture to display certain camera view? Somehow I think I saw something like this already, but I can't remember where... maybe I am confusing things here, so don't pin me down on that ;)

Link to comment
Share on other sites

haha yeah, I wish it was more straight forward to do it...

I kind of found a three.js example and tried to mimic it but there are a few things i need to fix:

 

1) stop the image from changing position when you change the size of the browser at load time

2) there is a weird white ring behind the camera

 

is there a way I can share my scene in a babylon Playground with the custom shader?

Link to comment
Share on other sites

No no, of course not. Shaders are awesome as far as I know. I just never took the time to learn how to use them (yet). And I am kinda scared of them... looks like complicated jibber jabber to me. But you can do alot of great stuff with them, so if you already figured it all out, good for you! I'll catch up some time later... maybe ;)

Link to comment
Share on other sites

Would any shader gurus be able to help me out here?

I am trying to get rid of the gigantic ring is this example:

 

http://www.babylonjs-playground.com/#26UUE1

 

my cameras projection  matrix is being plugged into my shader and whenever i do that I get this ring...sad face

Also the ring gets bigger the farther you dolly out with the render camera :S

 

I feel like its a simple fix and I am just missing something

 

thanks! :)

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...