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

handle cullface, help to #10597 #11172

Merged
merged 1 commit into from
Nov 23, 2018
Merged

handle cullface, help to #10597 #11172

merged 1 commit into from
Nov 23, 2018

Conversation

weihuoya
Copy link
Contributor

@weihuoya weihuoya commented Jun 12, 2018

Earth Defence Force 2 use GE_CMD_CULLFACEENABLE frequently with same value.

maybe this fall back is not necessary, I'm not familiar with other prim, if game use those, it is simple to handle it.

if (newPrim != GE_PRIM_TRIANGLES && newPrim != GE_PRIM_TRIANGLE_STRIP && newPrim != GE_PRIM_TRIANGLE_FAN && 
	cullMode != -1 && cullMode != gstate.getCullMode() ) {
	DEBUG_LOG(G3D, "flush cull mode before prim: %d", newPrim);
	drawEngineCommon_->DispatchFlush();
	gstate.cmdmem[GE_CMD_CULL] ^= 1;
	gstate_c.Dirty(DIRTY_RASTER_STATE);
}

@weihuoya
Copy link
Contributor Author

weihuoya commented Jul 3, 2018

I find GE_PRIM_RECTANGLES can process indices in software transform, but it rarely used in games with different cullmode.

@hrydgard
Copy link
Owner

This appears to somehow break the transitions between points in Virtua Tennis..

@weihuoya
Copy link
Contributor Author

what kind of transition? I haven't notice that.

@hrydgard
Copy link
Owner

When you score a point, the camera switches to look at the player. Except with this merge, only a solid blue background was seen when I tried it...

@weihuoya
Copy link
Contributor Author

play on my s7edge, qualcomm version. seems work ok.
screen_

@unknownbrackets
Copy link
Collaborator

@hrydgard is it possible to capture a GE dump of that scene?

-[Unknown]

@hrydgard
Copy link
Owner

I'll retest soon.

@weihuoya
Copy link
Contributor Author

weihuoya commented Aug 23, 2018

point, line and quad need cull off, only cull triangles. and there is a issue with GE_CMD_CULLFACEENABLE, fixed.

@weihuoya weihuoya force-pushed the cullface branch 4 times, most recently from 995c593 to 7383e90 Compare August 23, 2018 04:45
@hrydgard
Copy link
Owner

Sorry for my slowness, I will actually test again soon :)

@ghost
Copy link

ghost commented Oct 29, 2018

Waiting this in v1.8.0 milestones?

@unknownbrackets
Copy link
Collaborator

Worth testing this again with #11574 applied (since it fixes some lighting bugs that affect Virtua Tennis.)

-[Unknown]

@hrydgard
Copy link
Owner

I don't see any issues in Virtua Tennis, hard to explain why I saw them before...

Let's try this.

@hrydgard
Copy link
Owner

@weihuoya Wanna take a look at #11591?

@weihuoya
Copy link
Contributor Author

ok, I will check it out.

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.

3 participants