fcknbstrd / BilliardMaster

A simple billiard game built with Gorilla3D using physics for collision detection and game mechanics.
Apache License 2.0
1 stars 1 forks source link

GorillaViewport1 property error #1

Open abdalkader84 opened 11 months ago

abdalkader84 commented 11 months ago

i have this error GorillaViewport1.GlobalIllumDetail := 4; GorillaViewport1.GlobalIllumSoftness := 2; GorillaViewport1.ShadowStrength := 2;

image

fcknbstrd commented 11 months ago

Which Delphi IDE version do you use (11.0, 11.1, 11.2, 11.3)? It seems you're using a not compatible package without the global illumination feature. Please make sure you installed at least v1.0.0.2572.

abdalkader84 commented 11 months ago

i am using Delphi 11.3

fcknbstrd commented 11 months ago

Strange! I also tested it here with the latest package in 11.3 and there were no compilation errors. Do you have previous installations of Gorilla3D with conflicting paths? For example: If you installed 0.8 in the past and have now installed the new version via GetIt Package Manager, the paths from the older installation may still be in the IDE settings and will be preferred over the new ones.

abdalkader84 commented 11 months ago

no this is the very first release i install

fcknbstrd commented 11 months ago

Currently I have no idea what's wrong. The compiler also seems to complain about the Delphi TThread.Queue method.

I can offer to help by screen share on Discord if you like?!

fcknbstrd commented 11 months ago

28.0.47991.2819 looking ok. But the billiard table is missing in the 3d view. Btw: I deleted your screenshot because your e-mail was visible. Something with the initialization is not working on your maching.

Are you running in a virtual machine?

abdalkader84 commented 11 months ago

thank you soo much ,and thank you again for responding no i am not working on VM , do not warry i am not interrested in this game i want to learn ow to work with component , i need some tutorial , leave the billiards game and work on some tutorial this will help me more . i need to do ia tank battle game , so i need a 3d frame work n delphi , i think gorilla is a good choice,but ... need help

fcknbstrd commented 11 months ago

It's definitely a good choice :) I will provide some videos as soon as possible.

abdalkader84 commented 11 months ago

this what we want, actully i dont know what to select to go with i have 2 choises 1-GLScene 2-Gorilla the two week in tutorial

abdalkader84 commented 11 months ago

in FMX Delphi when i add about 500 3d object the IDE getting lasy, is gorilla the same as FMX ? Are there limits to the number of components in the application

fcknbstrd commented 11 months ago

It depends on the 3D objects you're using. Generally it's not a good idea to have 500 objects in a gaming scenery. Every object is at least one draw call. And draw calls are the killer of performance. Gorilla is much faster than standard FMX. You can work with static mesh rendering (meshes stored in the GPU), proxy rendering and GPU instancing (!). So for example instead of putting 500 tree models into a scene, load a single one instead and render with instances. Standard FMX renders very slow, because it pushes vertices on each frame to the GPU.

abdalkader84 commented 11 months ago

is 500 object too much ? Doesn't a tree or house, for example, contain more than 100 objects? i am thinking like that . i am just a begginer

fcknbstrd commented 11 months ago

The limit always depends on the rendered objects, the structure, number of vertices, number of textures, texture size, complexicity of the shaders, render passes and many more. I like simple models with good uv-mapping more than complex ones. But sure a house and it's interior can be a lot of objects. We have to see how it works out in a test. Frustum-culling and occlusion culling can help in performance by rendering only visible objects. Unity and Unreal also merging vertices into a single mesh for faster rendering (f.e. Nanite). Therefor Gorilla3D has a simple mesh assembling component.

abdalkader84 commented 11 months ago

thank you soo much ... wainting for tutorial

fcknbstrd commented 10 months ago

A first tutorial is online: https://www.youtube.com/watch?v=-hGl4AsSxw8

abdalkader84 commented 10 months ago

thank you soo much i am waiting on fire

fcknbstrd commented 10 months ago

More tutorials coming