orillusion icon indicating copy to clipboard operation
orillusion copied to clipboard

[FR]: Integration Orillusion with react

Open j209 opened this issue 1 year ago • 4 comments

Hi I think seamless integration Orillusion with react may be good idea. like three.js+react or babylon.js+react.

j209 avatar Aug 14 '24 08:08 j209

Thanks a lot for this consideration!

To be honest, this topic has been discussed in our Team for many times. We have following concerns and hope we could have a further talk:

  1. Vue and React, which one we should choose at the beginning?
  2. We consider to propose a project like A-frame, it is a pure web native syntax.
  3. It really takes time for us. If some more developers could join and discuss. It must be very helpful.

We will leave this issue open for some time and looking forward to more comments here.

JingwenBai avatar Aug 19 '24 08:08 JingwenBai

From what I know about reactive front-end frameworks, the rendering performance of these frameworks is not as good as that of game engines because they are not optimized for dedicated game scenes.

If users incorrectly use the front-end framework to drive game engine behavior, it may cause serious performance problems.

cqh963852 avatar Nov 20 '24 08:11 cqh963852

I can offer a simple solution.

  1. Create a vanilla js project
  2. Place the orillusion code in
  3. Using react's portal technology
  4. Bridge orillusion and react's store for data exchange

Remember not to handle orillusion in react effect

cqh963852 avatar Nov 20 '24 08:11 cqh963852

Whether it's Vue or React, please treat them as UI frameworks. Never combine WebGPU with them.

canzoneyu avatar Jun 24 '25 09:06 canzoneyu