[Blade of Agony] New screenshots | p179

For Total Conversions and projects that don't otherwise fall under the other categories.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Re: [Blade of Agony] Drivable Tanks! | p160

Postby Marisa Kirisame » Thu Mar 29, 2018 3:29 am

AFADoomer wrote:
Marisa Kirisame wrote:ZScript is also prone to breaking if you aren't careful. I see you got a save error there.

I guess it'll go away after I export F3DFloor.


I think it's because the FLineTraceData struct contains the F3DFloor entry (here), despite it not being exported... Interestingly enough, the TraceResults struct has the F3DFloor piece commented out.


That error specifically is because you're using it as a class variable, rather than a function variable. In cases like that I'd recommend marking the FLineTraceData variable as "transient" just so it doesn't get serialized (same workaround as with CVar structs). I'm pretty sure ZZYZX decided on commenting it out because it's not exported, but from the way my trace function is designed, that variable does need to be there, since the ffloor variable is useful to check for in some cases (e.g.: if it is non-null then the line/plane hit is part of a 3d floor, and such).
User avatar
Marisa Kirisame
ZScript Magician
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [Blade of Agony] Drivable Tanks! | p160

Postby Tormentor667 » Thu Mar 29, 2018 4:57 am

Marisa Kirisame wrote:That error specifically is because you're using it as a class variable, rather than a function variable. In cases like that I'd recommend marking the FLineTraceData variable as "transient" just so it doesn't get serialized (same workaround as with CVar structs).

I feel like reading an ancient language...
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [Blade of Agony] Drivable Tanks! | p160

Postby HAL9000 » Thu Mar 29, 2018 7:31 am

@ Tormentor667
Interesting, thanks for the explanation.
One more question, are tank md3 parts animated or static model?
I wanted to do something similar for my AT-ST, but his body/legs must be frame animated while moving, can your Zscript tank logic handle frames?
For example..AT-ST walking (md3 frames from X to Y) while rotating upper body/turret and shooting.

Cheers
User avatar
HAL9000
I'm sorry Dave, I'm afraid I can't do that
 
Joined: 16 Mar 2018
Discord: HAL9000#9378

Re: [Blade of Agony] Drivable Tanks! | p160

Postby AFADoomer » Thu Mar 29, 2018 10:47 am

Nash wrote:AFADoomer - can you tell us more about the tank physics and aligning the tank to sloped terrain? Are you sampling from 4 points of the tank and calculating the pitch and roll from there? Is that what the line traces are doing?

Yes, I'm sampling at the four corners of the tank model using GetZAt, calculating the relative offset from floors, then using those values to calculate pitch and roll.
Code: Select allExpand view
    // Handling for terrain-based pitch/roll calculations...
    
void SetPitchRoll(Actor mo)
    {
        if (!
mo) { mo self; }

        
double points[5], minz 0x7FFFFFFFmaxz = -0x7FFFFFFF;

        
points[0] = mo.floorz;

        
// Get the relative z-height at the four corners of the tank
        
points[1] = mo.GetZAt(RadiusRadius) - points[0];
        
points[2] = mo.GetZAt(Radius, -Radius) - points[0];
        
points[3] = mo.GetZAt(-RadiusRadius) - points[0];
        
points[4] = mo.GetZAt(-Radius, -Radius) - points[0];

        for (
int i 1<= 4i++)
        {
            if (
points[i] > MaxStepHeight) { points[i] = 0; } // Ignore the point if you can't climb that high
        
}

        
// Use those values to calculate the pitch.roll amounts
        
double pitchinput = (points[2] + points[1]) - (points[4] + points[3]);
        
double rollinput = (points[2] + points[4]) - (points[1] + points[3]);

        
pitchinput atan(pitchinput / (Radius 2));
        
rollinput atan(rollinput / (Radius 2));

        
mo.pitch clamp(mo.pitch, -3030);
        
mo.roll clamp(mo.roll, -3030);

        
// Interpolate to the new values
        
if (mo.pitch > -pitchinput) { mo.pitch max(mo.pitch 1, -pitchinput); }
        if (
mo.pitch < -pitchinput) { mo.pitch min(mo.pitch 1, -pitchinput); }

        if (
mo.roll rollinput) { mo.roll max(mo.roll 1rollinput); }
        if (
mo.roll rollinput) { mo.roll min(mo.roll 1rollinput); }
    } 

Still needs to be cleaned up and optimize, but that's the code as it stands now.

HAL9000 wrote:@ Tormentor667
Interesting, thanks for the explanation.
One more question, are tank md3 parts animated or static model?
I wanted to do something similar for my AT-ST, but his body/legs must be frame animated while moving, can your Zscript tank logic handle frames?
For example..AT-ST walking (md3 frames from X to Y) while rotating upper body/turret and shooting.

Cheers


It handles basic animation right now... The treads move when the base of the tank moves. For a proper walking animation, there would probably need to be some added handling for smoothly moving from standing to walking and back, but the core code would still work.
User avatar
AFADoomer
 
Joined: 15 Jul 2003

Re: [Blade of Agony] Drivable Tanks! | p160

Postby nazakomu » Fri Mar 30, 2018 6:44 am

I've gotta say, the ZScript work that AFADoomer has done is impressive.
We're seriously starting to see some of the much greater possibilities due to ZScript.
User avatar
nazakomu
apathetic
 
Joined: 30 Nov 2016
Discord: Nazakomu#2197

Re: [Blade of Agony] Drivable Tanks! | p160

Postby Tormentor667 » Fri Mar 30, 2018 5:06 pm

Last edited by Blue Shadow on Fri Mar 30, 2018 7:30 pm, edited 1 time in total.
Reason: Used [imgur] tag on screenshots.
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Blue Shadow » Fri Mar 30, 2018 7:32 pm

Reminder for next time: viewtopic.php?f=48&t=57325
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Captain J » Sat Mar 31, 2018 1:21 am

...Large Image Derp aside, that tank scene looks Tankin' Amazing!! Hope the control isn't so bad, tho! :D
User avatar
Captain J
'OH YE'
 
 
 
Joined: 02 Oct 2012
Location: Secret Chamber
Discord: DiscussJ#3128

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby GeneralDelphox » Sat Mar 31, 2018 12:53 pm

Is there going to be some sort of First Person/Gunner views for the tanks?
User avatar
GeneralDelphox
 
Joined: 30 Sep 2017
Discord: #8387

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby TDG » Sat Mar 31, 2018 5:42 pm

Oh cool, new screenshots of BOA. How is far is the progress on map building?
User avatar
TDG
 
Joined: 19 Jun 2016
Location: The Netherlands

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Ozymandias81 » Sun Apr 01, 2018 12:00 pm

@GeneralDelphox - It is not planned, but never say never

@TDG - You can spoil yourself checking github development :wink:

HAPPY EASTER EVERYBODY, and in case you wonder I am the dude who ripped models for that Sherman tank, from CoD2 with slightly edits and adjustments on a total of 6 model parts for main actor and 4 model parts for destroyed one.
User avatar
Ozymandias81
Doom is a State of Mind... Out of Control.
 
Joined: 04 Jul 2013
Location: Mount Olympus, Mars
Github ID: Ozymandias81
Operating System: Windows Vista/7 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby CeeJay » Sun Apr 01, 2018 1:36 pm

Will the next chapter be more run-n-gun action and less stealth and rescue-mission oriantated than the previous one?
CeeJay
 
Joined: 14 Mar 2010

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Tormentor667 » Mon Apr 02, 2018 3:54 am

Yes ;)
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Wiw » Thu Apr 05, 2018 6:56 am

How much of Chapter 3 would you say is done at this point?
User avatar
Wiw
Frequently puts foot in mouth
 
Joined: 11 Jun 2015
Location: Everywhere and nowhere.

Re: [Blade of Agony] Tank Battlefield Screens! | p161

Postby Tormentor667 » Thu Apr 05, 2018 4:23 pm

About 25%, it’s still a lot of work left
User avatar
Tormentor667
needs more detail
 
Joined: 16 Jul 2003
Location: Germany

PreviousNext

Return to TCs, Full Games, and Other Projects

Who is online

Users browsing this forum: Kinsie, mail.ru [Bot], saegiru, Viscont23 and 9 guests