Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocumentation is needed #172
Comments
|
I recently integrated filament into my GLFW application. A "Getting Started" guide would definitely have saved me time. There were a few specific things I noticed:
|
|
We definitely need to write better samples and documentation. Right now a good starting point is For #3, the reason it works is that we automatically create a transform component for renderables when we load meshes in the sample apps ( |
|
Looking more closely you are right some samples use the transform manager without creating the component first. I'll check what's going on there. |
|
Nevermind I remember now. When creating a Renderable, a TransformManager component is automatically added if the entity doesn't have one alredy. We need to document this. |
|
As a side note, one cool thing about GitHub wikis is that they are cloneable, so we can use our favorite text editors to work on the wiki: |
|
@cgmb, at some point I decided that creating a Renderable would always create a Transform component -- because that's what we want 99% of the time. I didn't update the doc at the time. So, for Renderables, it should never be invalid. |
Hi, @cgmb I'm trying to use filament with GLFW,
......
' class utils::PostconditionPanic Please help me if you have any idea about cause for this error... |
|
Sorry @Raki, my target platform is Linux and I only ever hacked things together before I had to move on. But, I did get my hello triangle working with GLFW on Ubuntu. The code is very, very rough, and I have no idea if it will be of any use at all, but now it's there for anyone interested. |
@cgmb Thank you for the response and the example. I will go through it. I am sure it will be of some help :-) to me. |
|
@Raki and others if you are still struggling with this, here is a solution: |
|
So it is unclear to me what I need to delete to clean up, and when I can do so. |
|
@pixelflinger can give you more info |
|
We also should add more API docs (libmath and let mostly) |
|
For anyone like me who wanted to get filament working with Qt, I've created a simple hello world example based on @cgmb's repo which you can find here. I've only tested it on Linux, but in theory since both Qt and Filament are cross platform it should work on Windows too (with some tweaks to the Makefile). |
|
Thank you @nitronoid! |
@kavaari Thank you for the suggestion. As per the filament-20190426-windows build, if we pass HDC handle, app is crashing. It is working fine with Win32 HWND. (Also need to introduce a delay of 17ms in glfw renderloop without the delay command buffer is being flooded) |
|
The issue is caused when creating your own context and using the |
We need to write on-boarding documentation in the Wiki section of the project. Most notably:
Engine,RendererandViewwith SDL or equivalentEngine,RendererandViewwith AndroidVertexBufferandIndexBuffer)