Babylon3D: Standard Edition

Post your completed addons to share with the community

Post » Thu Jan 12, 2017 8:00 pm

@X3M The specular power on Mesh properties in the NewMesh objects is inversed. When less value you put, more Specular power and more shinies gets the object. ¿? .
B
23
S
10
G
3
Posts: 543
Reputation: 4,436

Post » Thu Jan 12, 2017 9:30 pm

@matriax Oh I didn't pay attention to it
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,964

Post » Thu Jan 12, 2017 10:21 pm

@X3M Well, not bad for the first day:
https://www.youtube.com/watch?v=IPPSMKGu9Yg

Most of the time was testing again and again to get the top level design work with all the 3D models. Not all clean as i wanted but works i will optimize later.

Fighting again with the "stairs" and gravity haha, tomorrow hope to test the change of mesh ellipsoid and other things to see if now they work correctly and can do this thing more easy.
B
23
S
10
G
3
Posts: 543
Reputation: 4,436

Post » Thu Jan 12, 2017 11:03 pm

@matriax It would be better if you matched the scene skycolor (Clear color) with the fog color, your video looks smooth, is it a 60 FPS video ? what screen recorder are you using ?
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,964

Post » Thu Jan 12, 2017 11:30 pm

@X3M I can not get the camera to collide with an ojb.

http://www.mediafire.com/file/5sqiniykt ... ision.capx
B
55
S
18
G
10
Posts: 98
Reputation: 8,788

Post » Fri Jan 13, 2017 8:04 am

@Mataguirirs The object and the scene have the collision state On?

@X3M About the fog yes, for some reason the fog was 32,32,32 instead 0,0,0 now is ok.

I'm using OBS for record videos using the NVENC H.264 wich uses the GPU not the CPU I can do 60fps videos but with 30fps looks good and for a bitrate in 1080p looks much better when streaming.
B
23
S
10
G
3
Posts: 543
Reputation: 4,436

Post » Fri Jan 13, 2017 9:57 am

@MATAGUIRIS Here is an example
Here is a fully detailed explanation:
As you know, obj models are widely available on the Internet, but the modellers can be sometimes noobs and they don't set the pivot to the center of the model or sometimes the scaling factor of the pivot is not 1. Or sometimes the obj can be composed of several meshes which is a problem. So to solve this problem I added an extra mesh which will act as a parent, you can see it if you set Debug to True in the OBJ properties.
So when you import an obj model, you need to see if the debug mesh fits perfectly to the obj, if not then you should use those XYZ scaling and offset parameters to adjust fit the model.
And finally you activate collisions for the mesh debugger.
@matriax Oh I see so it's for Nvidia only ?
Banned User
B
17
S
7
G
23
Posts: 388
Reputation: 13,964

Post » Fri Jan 13, 2017 10:06 am

@X3M The NVENC H.264 yes is only for Nvidia Cards(if i understood well how works), appeared after install the last drivers.

BTW, with OBS with the H.264 normal codec i can do videos smooth like this until 1500x(Intel Core i5-3570K 3.4Ghz 4cores). For full windows at 1080p i get lots of frames drops, but with the NVENC H.264 no matter the resolution, uses the GPU not the CPU so i can do 1080p videos at 60fps of any fullscreen app or game without problems that was used in that video.
B
23
S
10
G
3
Posts: 543
Reputation: 4,436

Post » Fri Jan 13, 2017 11:35 am

First error/bug :
Image
(Is a NewCamera and a NewMesh)

---

Trying to figure how convert the object degress into the camera ones but works in a weird form. The only way i achieved is adding another object and "Set camera target".

I tried the "set camera rotation" and "Set rotation by", but the coordinates are so weirds, also when you turn around no sets again to 0 continues.

I have a sprite that show the camera image in the C2 layout. Actually sets the camera position and the other thing i wanted is set the camera rotation depending of the angle of the sprite(0-360º), but the camera not uses the 360º, uses another and i was unable to do the conversion, the unique way is using the mesh target.

Is there anyway to get the 0-360º of the camera to be more easy for manage?

EDIT: Oh well Babylon.js uses Radians, here all explained:
https://doc.babylonjs.com/generals/A_Babylon.js_Primer

Going to use that maths expresions to see if i can achieve the conversion correctly.
Last edited by matriax on Fri Jan 13, 2017 11:53 am, edited 1 time in total.
B
23
S
10
G
3
Posts: 543
Reputation: 4,436

Post » Fri Jan 13, 2017 11:46 am

The stage is created with Magica Voxel, then I export as obj.

So I can not create a scenario, export it as an obj and use it as a scenario?
B
55
S
18
G
10
Posts: 98
Reputation: 8,788

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests