Tag: UNITY-WEBGL
No puedo hacer que mi escena Three.js se muestre en el lienzo HTML. Estoy importando un archivo OBJ que se está importando correctamente. Muestra todos los detalles, como Mallas, materiales, etc. correctamente. Aquí está mi código: export function TestScene() { const mountRef = useRef(null); const scene = new THREE.Scene(); const . . . Read more
Estoy creando un framebuffer y adjuntándole una textura. Aquí está la textura que me gustaría adjuntar (pero no funciona): gl.texImage2D(gl.TEXTURE_2D, 0, gl.R32F, sphere_texture.width, sphere_texture.height, 0, gl.RED, gl.FLOAT, null); Sin embargo, cuando uso este formato de textura, funciona: gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, sphere_texture.width, sphere_texture.height, 0, gl.RGB, gl.UNSIGNED_BYTE, null); ¿Alguien sabe cómo podría . . . Read more
Estoy tratando de utilizar algunas características de ES 3.1 y no está claro si esto está admitido: Observo que hay un encabezado de OpenGL ES 3.1 en el repositorio de emscripten que define algunas de las funciones que estoy buscando, y puedo incluirlas con éxito en mi proyecto. Sin embargo, . . . Read more
Mi caso es así, solo quiero obtener el campo de la estructura WebGlContextAttributes. let antialias_info = gl.get_context_attributes().unwrap(); match antialias_info.antialias { // … } Recibo el siguiente error: attempted to take value of method `antialias` on type `web_sys::WebGlContextAttributes` method, not a field. Y he leído la documentación en WebGlContextAttributes, pero aún . . . Read more
Cuando compilo y ejecuto como webgl en Unity, funciona perfectamente (en el servidor local), sin embargo, cuando lo subo a mi servidor e intento ejecutarlo, obtengo el siguiente error: No se puede cargar el archivo Build/webgl3.framework.js.gz. Verifica que el archivo exista en el servidor remoto. (también verifica en la Consola . . . Read more