K
K
Konstantin2018-10-15 13:38:02
3D
Konstantin, 2018-10-15 13:38:02

3D render in WEB?

Hello, tell me the tools for WEB release, the server side of PHP 7.2
is such a tool for 3D interior rendering
kronostar.esignserver2.com/gallery.do;jsessionid=9...

Answer the question

In order to leave comments, you need to log in

6 answer(s)
M
Maxim Timofeev, 2018-10-15
@webinar

There is no 3d in sight. There the pictures change:
kronostar.esignserver2.com/image?maxwidth=1024&max...
There is a set of options and that's it. Theoretically, of course, it can be rendered on the server, but I don’t think that this is sensible in principle, because the task is resource-intensive. So it makes sense to generate options 1 time and upload them to the server.
As an option - several pictures, each with its own layer and 1 is dynamically collected, overlaying layers. But definitely not 3d.
There are libraries like https://www.babylonjs.com but in this example it doesn't smell like that and they run on the client, not on the server.

N
Nikolai Chuprik, 2018-10-15
@choupa

I will add Maxim Timofeev . If the pictures are static or quasi-static (cyclical animation or known movement of cameras over limited positions, for example, a 360-degree view of a car), then it is necessary to pre-calculate frames with good quality in normal packages like 3dsmax or blender, issuing ready-made png to the client, possibly in layers with transparency.
I used to do this: go around the building in a circle with a smooth pre-rendered storyboard in 5 degrees (4-5 hours of pre-rendering in average quality). Somewhere lies in the archive, but it was even done on flash.
Rendering in the browser makes sense only for truly dynamic changing scenes or for complex camera control by the user. I am currently using three.js. At the same time, it is important to understand that you should not expect high quality and photorealism, comparable to the same 3dsmax, from rendering in javascript. For sketchy graphics or abstract worlds, it will do, but no more.
Well, as you might guess, it’s impossible to dynamically render on the server side, in principle, because of lags. Only on the client.

E
Egor Padalka, 2018-10-15
@ehs

I will say as a performer of such a task. This is a pre-render of the background.
In my version, there was a PNG with shadows over the entire interior. The color of the walls could be changed in real time, everything looked realistic due to superimposed 5bc49ad52977d747219759.pngshadows. I also turned on the light differently - three different PNGs with shadows / lights

I
Ivan Bogachev, 2018-10-15
@sfi0zy

I'll add a few more words about this problem in general (not about the site at the link in the question, but in general). If you want to do such a static thing with choosing the color of walls, wallpaper, floors, etc., especially if you want to give the user the opportunity to choose their own option, then you can use SVG. It's a little sudden, but still. The main part of the room, shadows and reflections are a regular picture with transparency in the right places (it can be embedded in SVG via the image tag), walls, floors are simple rectangles on which 3D transformations are superimposed. Then you can fill them in any way you like - with colors, textures... and you won't have to rack your brains with the question of how to rotate a "normal" texture on the fly and turn it into a floor with perspective. Filling furniture with color is not much more difficult - making an SVG mask in the shape of a piece of furniture and applying the hue-rotate filter. Thus, it is possible to build a working version of such a presentation "on the knee".

A
Andrey Larin, 2018-10-19
@engine9

If desired, you can do this on the WEBGL engine. You can also rotate the camera in the scene.

K
Konstantin, 2018-10-15
@ownedbycat

the pictures change, this is understandable, the server re-renders the scene, and gives the finished picture.
there is a very large number of these photos, it must be generated on the fly for sure

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question