Skip to content

document more the different texture formats #140

Description

@gre

Activity

  1. self-assigned this
    on Mar 3, 2018
  2. superhalb commented on May 24, 2018

    @superhalb

    Is there any documentation for textures formats at all?
    It's hard to guess from the source code.
    Should base64 data uris work? I'm trying with base64 but getting an error: "EXGL: invalid pixel data argument for gl.tecImage2d()"

  3. gre commented on May 24, 2018

    @gre
    OwnerAuthor

    I don't think base64 works for expo. it's more up to Expo side to list what's supported than on our side because we basically pass-in whatever you pass to the gl.texImage2D call

  4. gre commented on May 24, 2018

    @gre
    OwnerAuthor

    if you where using gl-react-expo ! then if gl-react-native , i guess we'll need to doc more react-native-webgl. but yeah i agree we need doc

  5. robertjuh commented on Jul 23, 2018

    @robertjuh

    @gre Would it be possible to preload textures within react native?

    I have to dynamically alter the textures of a rendered object with the THREEjs library but the textureloader doesn't work as there's no DOM and the ImageLoader has to make an HTML Image element (document.createElementNS('img') ). There's some texture loaders available but they all require a GL object (and a renderer object) which only seems to be available within the render function.

    I tried using the DOMParser library for creating an IMG but THREEjs seems to be unable to work with that as it says: "image.addEventListener is not a function".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions