HTML with CSS inside a Scene

Continuing the discussion from How to load a 300mb .babylon file from browser cache?:

:exclamation: :person_raising_hand: IMPORTANT! PLEASE REPRODUCE YOUR ISSUE ON THE Playground FIRST! :person_raising_hand: :exclamation:

:thinking: Before asking a question

  • :mag_right: Search about your issue on the documentation. Maybe the problem you have is just a matter of understanding how the API works?
  • :mag_right: Search about your issue on the forum. Maybe someone else already had the same problem?

:question: How to ask a good question

  • :thought_balloon: Write a title that summarizes the specific problem: A good title will help others identify what are you talking about quickly.

    • Bad example: Shadow problem
    • Good example: Imported meshes on my scene don’t cast shadows
    • Bad example: Issue with GUI
    • Good example: GUI Button isn’t displayed on VR Session
  • :building_construction: Reproduce your issue on the Playground: This is the MOST IMPORTANT STEP! If we can see what you have tried on the Playground, and what the result of this is, we are much more likely to get what’s going on! And even if your problem is not happening on the Playground, but only on your environment, this already can give us clues what’s going on.

  • :person_in_lotus_position: Be patient: The team and forum users are all on different time zones, so your question might take a few hours to be seen. We try to answer everything as fast as we can, but remember we’re not robots :robot:

:package: Resources

HTML Mesh is your best helper here - Babylon.js docs

2 Likes

The issue title do not match the shared other issue… please take the time to fillin/replace the template.

I have done it, i have a problem with it! the html mesh! as i walk its position is getting transformed. How do i keep it in fixed position

From this video, I can see just the offset on Y changing? Weird thingy, really hard to tell from just the video. Looks like there’s something wrong with your code/implementation. Any chance you could provide a PG?

1 Like

Certainly not I cannot do that dude! Sorry for that. I am restricted to do that

You understand I’m not speaking about the real thing, right? You could make just a dummy using only the parts of code that are relevant. And then, while doing this, you’ll eventually spot the problem yourself (happens more often than you would think). Fact is, this behavior is kinda unknown (at least to me). Truth is, l don’t know who can spot the issue from just the video and zero code !? :elf: If you don’t wanna share anything then I suppose you’ll have to do it on your own. I would start by checking back on the doc and related playgrounds again. Edit one of these, notice that IT DOES work. Then, try to add at least your camera and a (dummy) representation of your player/avatar along with the related code. See what it does. That’s all I can say. Else, you can just hope some smart guy (much smarter than me :wink:) will come up with some assumption that will ‘incidentally’ match your case :thinking: :sweat_smile:

I won t be possible to address without a repro :frowning: