- This topic has 7 replies, 3 voices, and was last updated 4 years, 1 month ago by Ivan Lyubovnikov.
-
AuthorPosts
-
2020-11-16 at 6:19 am #35347sirhcCustomer
Hi there ,
How would I go about implementing this point sprite example into my puzzle project???
https://cdn.soft8soft.com/demo/examples/index.html#webgl_points_sprites
Help is much appreciated!!!
Greets Chris
Technical Artwork Specialist@TBL.nl
2020-11-16 at 12:20 pm #35367Yuri KovelenovStaff2020-11-16 at 12:26 pm #35371sirhcCustomerHi Yuri,
Tnx for the awnser…
I tried that but it didn’t work…
My coding skills aren’t so good….So:
camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camerascene = new v3d.Scene();———> how do I use my exciting scene
renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??
Could U be more specific what to put in the exec puzzle.???
tnx!!
Technical Artwork Specialist@TBL.nl
2020-11-17 at 7:22 am #35408Yuri KovelenovStaffif coding is a problem, then you might try it in a different way – just make transparent planes with snowflake textures that are animated using their UV coordinates. Something like this: https://cdn.soft8soft.com/demo/applications/xmas_vr/xmas_vr.html
2020-11-17 at 7:57 am #35415sirhcCustomerHi Yuri,
I’ve seen and checked that solution…..tnx.
I kinda wanna figure out how to implement these coding examples in pluzzle’s for the future. Not only in case of the snowflakes….
I keep getting stuc wanna implement these example files into my projects…
Always on the same thing: the code file’s make their own canvas camera’s en render’s:So:
camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camerascene = new v3d.Scene();———> how do I use my exciting scene
renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??
How do I convert that to my puzzle project….
Help is much appreciated!!!Technical Artwork Specialist@TBL.nl
2020-11-19 at 8:42 am #35511Yuri KovelenovStaff2020-11-19 at 8:46 am #35514sirhcCustomerI’m willing to take another look myself to figure this out…
Can U at least point me in the right direction then?…..Also I tried to use the execute puzzle to create buffergeometrie,….
can’t seem to make that work either,….
Is there an working example anywhere??Technical Artwork Specialist@TBL.nl
2020-11-23 at 3:37 pm #35779Ivan LyubovnikovStaffAlways on the same thing: the code file’s make their own canvas camera’s en render’s:
So:
camera = new v3d.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 1, 2000);———> how do I use my exciting camerascene = new v3d.Scene();———> how do I use my exciting scene
renderer = new v3d.WebGLRenderer();———>HHow do I convert this to my exciting scene??
How do I convert that to my puzzle project….Hi, if you want to add code from examples either into your application’s js files or into puzzles via “exec script”, then there is an “app” variable for accessing your camera, scene, etc…
“app” is a parameter in the runCode() function (see more info here: https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html#Method_2_Standard)
Also, “app” is built-in in “exec script”:
https://www.soft8soft.com/docs/manual/en/puzzles/Advanced.html#exec_scriptIn both cases you can just use
app.scene
,app.camera
andapp.renderer
to reference what is already created in your application.Also I tried to use the execute puzzle to create buffergeometrie,….
can’t seem to make that work either,….
Is there an working example anywhere??That shouldn’t be a problem. Can you describe what you exactly want to achieve?
Co-founder and lead developer at Soft8Soft.
-
AuthorPosts
- You must be logged in to reply to this topic.