Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPBGE: Add an option to use viewport render directly in embedded #1072

Merged
merged 7 commits into from
Nov 5, 2019

Conversation

youle31
Copy link
Collaborator

@youle31 youle31 commented Nov 5, 2019

This is not perfect, but I think it can be merged. This is really fun.

Maybe we should avoid the beginning of the render loop in KX_KetsjiEngine and move the code here
to render only the main scene and the main camera.

But as an experimental option it's cool

instead of custom game engine render loop.

Advantages:

We can use all render options, modes (solid, wireframe...), things like grease
pencil which are not drawn in game loop.
We can hide outlines/overlays as there is a viewport option.

Inconvenients:

Less flexibility if we want to do other things in the draw pipeline.

But this is cool as an option I believe.

TODOs:

- See if we can get a valid ARegion/maybe other things... to use this render mode in blenderplayer?
Or we keep this option only for embedded and lock it for blenderplayer.

- Fix the mess introduced in KX_BlenderMaterial.

and... I don't remember what
@youle31 youle31 requested a review from lordloki November 5, 2019 18:41
@youle31 youle31 merged commit 23afed3 into upbge0.3 Nov 5, 2019
@youle31 youle31 deleted the eevee_use_viewport_render branch November 5, 2019 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants