Menu

#4 ImageTexture with relative subdirectory url not working for x3d

1.0
open
nobody
None
2024-12-09
2024-11-21
No

Hi, i've discovered while reviewing a recent change on the blender x3d extension that freewrl is currently not capable of reading image files from a relative subdirectory. See attached file. Is the file corrupt or does freewrl handle this case not just yet?

1 Attachments

Related

Tickets: #4

Discussion

  • dug9

    dug9 - 2024-11-21

    Testing in version 6.7 of freewrl:
    It's the backslash vs foreslash issue:
    In the file as exported, it complains it can't locate file texturesUntitled.png
    <imagetexture def="IM_Untitled" url=""textures\Untitled.png"">
    -- its as though it takes out the backslash and concatonates the parts.
    If I change to foreslash:
    <imagetexture def="IM_Untitled" url=""textures/Untitled.png""></imagetexture></imagetexture>

    -- then no complaints and the texture shows up.
    If I change to a double-backslash:
    <imagetexture def="IM_Untitled" url=""textures\\Untitled.png"">
    -- then no complaints and the texture shows up.
    Q. do you think that's a bug in freewrl or blender x3d exporter? Does the exporter have any options about fore vs backslashes?</imagetexture>


    From: tickets@freewrl.p.re.sourceforge.net tickets@freewrl.p.re.sourceforge.net on behalf of Cedric Steiert bujuskrachus@users.sourceforge.net
    Sent: November 21, 2024 6:02 AM
    To: Ticket #4: ImageTexture with relative subdirectory url not working for x3d
    Subject: [freewrl:tickets] #4 ImageTexture with relative subdirectory url not working for x3d


    [tickets:#4]https://sourceforge.net/p/freewrl/tickets/4/ ImageTexture with relative subdirectory url not working for x3d

    Status: open
    Milestone: 1.0
    Created: Thu Nov 21, 2024 01:02 PM UTC by Cedric Steiert
    Last Updated: Thu Nov 21, 2024 01:02 PM UTC
    Owner: nobody
    Attachments:

    Hi, i've discovered while reviewing a recent change on the blender x3d extension that freewrl is currently not capable of reading image files from a relative subdirectory. See attached file. Is the file corrupt or does freewrl handle this case not just yet?


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freewrl/tickets/4/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Tickets: #4

    • Cedric Steiert

      Cedric Steiert - 2024-11-21

      Hi Dug, thanks for the quick reply. You can consider this issue as resolved then as it's also working on my end with your proposed changes.
      I totally missed the fore-backslash difference whilst comparing different output files...thanks for the hint.

      Does the exporter have any options about fore vs backslashes?

      The image texture export feature is currently in development by Vincent Marchetti. At the current state there is no such option, however further testing resulted in inconsitent output results depending on chosen path option. Totally missed that tiny difference whilst testing.

       
  • John W Carlson

    John W Carlson - 2024-12-09

    URLs have forward slashes.

     

Log in to post a comment.

MongoDB Logo MongoDB