Comments (3)
Example project to replicate error: https://github.com/jasonsturges/openfl-away3d-filter3d
Filter is added at line 132
Looks like the proxy is set after the first frame's render, but I believe I should be able to add a 3d filter before frame 2. Maybe this is by design.
Not to further complicate this, but when the filter is added on frame 2, mac64 target throws
Program3D.hx:332: fragment: ERROR: 0:18: Incompatible types (float and vec4) in assignment (and no available implicit conversion)
ERROR: 0:18: Use of undeclared identifier 'va0'Error : Error compiling fragment shader: ERROR: 0:18: Incompatible types (float and vec4) in assignment (and no available implicit conversion)
ERROR: 0:18: Use of undeclared identifier 'va0'
from away3d.
Just a quick note (not a complete solution - sorry).
In your example, stage3DProxy is indeed null and as such causes the error. The reason for this is that the stage3DProxy is only requested when the view is added to the stage. In your Away3DViewport class, moving the addChild(view) from the end of the initialiseListeners (ln95) to the end of initializeEngine (after ln65) instatiates a stage3DProxy before adding the filters and fixing your error.
Now the next problem is that the DepthOfFieldFilter3D is causing a GL error at the moment at runtime which I've not yet looked at. I tried the BloomFilter3D and that seemed to work ok after moving the addChild reference.
See what you think but it might be easier to close this item (after you've checked it) and create a new issue for the DepthOfFieldFilter3D for clarification.
from away3d.
That makes total sense - sorry about that.
Cool, let me track down the exact issue with the DepthOfFieldFilter3D and log that here, or appropriate project if root cause is Lime or OpenFL.
Thanks, again.
from away3d.
Related Issues (20)
- Please publish a new version to Haxelib HOT 1
- Problem with MD2Parser HOT 4
- Add Missing MouseEvent3D Events
- View3D project bug in shareContext HOT 2
- Bug in OrthographicLens.hx HOT 1
- How to play animation in Dae format? HOT 9
- How to lower screen resolution on mobile to render app faster? HOT 4
- Parallax Mapping. Possible? HOT 2
- FBX support? HOT 2
- [HTML5] shared context with starling doesn't work, if starling contain masks HOT 1
- [HTML5] Stage resizing issues with shared context
- Object3D.pivotPoint (bug) HOT 1
- If _billboardAxis is not null in ParticleBillboardState, the display object will disappear.
- Memory leak: material.lightPicker
- `ParticleGeometryHelper` creates one particle per subgeometry. HOT 2
- lime test flash fails HOT 1
- Starling/Away3D interoperability is broken HOT 1
- error on view3D.dispose() (i now provided my code) HOT 12
- Plans to add Away3D 4.2 Changes?
- View3D.hx - onScenePartitionChanged (scene -> should be _scene)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from away3d.