Jump to content
The Dark Mod Forums

Recommended Posts

Posted

So I can't seem to locate what's been added feature wise (or when) for an exact list so I thought I'd just ask. I heard we'd be seeing support for a common video format to be added into TDM with one of the updates. I'm assuming this video could be ran in a shader format to display on a screen of sorts? There'd be a lot of fantastic uses for that and would be much easier than the severely outdated ROQ method. Also it's worth asking if embedded video audio be played directly in sequence?

  • Like 1

Modeler galore & co-authors literally everything

 

 

  • 2 months later...
Posted

Got another one for you fellas! So I was wondering real quicky, what resources do we have describing custom loading UI and menu header options? Specifically right now I'm tackling the custom FM loading screen (and loading icon). If MTR functions can be loaded in just like in-game this should be a cinch. I just wanted to have the title banner on a non-moving material with a circular element rotating infinitely around it. It's pretty simple in concept so I was wondering if someone might be able to steer me in the right direction? :D

Modeler galore & co-authors literally everything

 

 

Posted

What you can do during a loading screen is somewhat limited to what you can do in GUIs. There are translation and rotation functions, but you can't make them move consistently, iirc. Everything animated in loading screens that I've made has been tied to the loading progress.

Posted

Alright this may be a bit hacky to presume but it would appear by reading this you could set motions to react to a constant value right?

 

http://wiki.thedarkmod.com/index.php?title=Loading_Screen_Text

 

If I'm reading that right you'd just be telling the loading circle to spin endlessly, unless I'm assuming incorrectly as to how a GUI material is directed? A lot of assumptions on my end as I've never done any kind of GUI work before. Do these correspond somewhere to an MTR (or comparably close decl) that just calls a material? Once I get down to business, I wanna start just dinking around with this till I have a basic understanding of what it should be doing. That makes me wonder how the TDM main menu elements are handled, cause those seem to loop endlessly as well.

Modeler galore & co-authors literally everything

 

 

Posted

https://www.iddevnet.com/doom3/guis.php

 

 

What you can do during a loading screen is somewhat limited to what you can do in GUIs. There are translation and rotation functions, but you can't make them move consistently, iirc. Everything animated in loading screens that I've made has been tied to the loading progress.

Not completely true. There is a time command similar to how it is available to materials, that uses the game time. Our loading screens normally only refer to the loading progress as this is what the level loading meter should represent. The above link provides examples. You can also use materials in guis (see the security camera/peeking through keyholes described in my mapping thread for example) which themselves can refer to arb shaders. And you can have render views (think of hte compass).

 

So in the end you are pretty free to do whatever you want. Although there might be some limitations that I am not aware of due to the loading screen beeing a menu gui.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted

Alright so I made a working rotating logo portion but it freezes a lot with the actual loading happening with the map...

E5orG7Y.png

 

 

 

It's being ran from this MTR...

loading_gear_logo
{
	{
                blend    	diffusemap
                map      	guis/assets/BRTC_loading_gear_alpha
		alphatest 	.75
                rotate   	time * .04
		alphazeroclamp
	}
	{
		blend		add
		map			guis/assets/BRTC_loading_gear_alpha
		rgb			1
		rotate   	time * .04
		zeroclamp
	}
	{
		blend		add
		map			guis/assets/BRTC_loading_logo
		rgb			1
		centerScale		1.55,1.55
		zeroclamp
	}
}

The GUI is pretty simple, looking like this...

windowDef Desktop
{
	rect	0,0,640,480

		windowDef TitlePicture
	{
		rect	0,0,640,480
		visible	1
		background	"guis/assets/mission_start.tga"
	}

		windowDef LoadingGear
	{
		rect	10,350,640,480
		visible	1
		matscalex	5
		matscaley 	5
		background	"loading_gear_logo"
	}

}

The rotate line in the GUI listings page appears to be a static (one time) operation when the script is ran. However if I could just tell the same logo to set different rotational positions on a timed set of intervals I might get more reliable rotations. I'm not sure if there's much that can be done here as it may just have to do with how 2.05 isn't optimized for multi-core performance boost. Not entirely unheard of for the loading ring in a game to lag/stutter (as there are a ton of AAA games that do) but I'd like to think there's a smoother option out there.

Modeler galore & co-authors literally everything

 

 

Posted

You can rotate the gear directly inside the gui without the need of an additional material. Maybe that approach would work better.

 

Is the first block actually doing something? blend diffusemap doesn't make much sense imho in a gui as there is no light the material could interact with.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted
Alright so I made a working rotating logo portion but it freezes a lot with the actual loading happening with the map...

 

 

Yes, that's what I found with any animated function.

Posted

You can rotate the gear directly inside the gui without the need of an additional material. Maybe that approach would work better.

 

Is the first block actually doing something? blend diffusemap doesn't make much sense imho in a gui as there is no light the material could interact with.

 

 

Diffuse was driving the transparency (outside of the gear) and that provides a cutout for the rest of the material. Strange part is sometimes it's working great (real smooth rotation) and other times it's herky jerky.

 

What I'd like to try is just create a set of manual rotation coords (in the map gui) on a set time that loops back to the beginning of the frames to keep spinning the gear (or give the illusion thereof). I'm looking at the menu background figure set from mainmenu_background.gui and am wondering if I could do something kinda like that. Just set it to swap maybe four rotation angles? By the time you pass cog positions, it can just reset to the start since the gear is symmetrical. If there was an, "always-rotate" option like what the MTR rotate does that'd be cool but I wasn't having that kinda luck when I tried it. Might have been needing different input data than I was feeding it though.

 

Gonna see if this gui is gonna use the alpha channel for this gear, else we might have another problem.

 

EDIT:

 

Alright now for anyone who actually knows a thing or two about GUI this'll look dumb but you can get an idea of what I'm trying to do. This reference indeed will not work and what I'm finding is I might need to instance two separate MTR definitions for the two portions of the logo. The GUI doesn't want to handle the transparency and it's destroying the bounding, so I'd rather just feed it the already working MTR def and rotate that.

windowDef LoadingGear
    {
        rect    10,350,640,640
        visible     1
        matscalex   5
        matscaley   5
        background    "guis\assets\BRTC_loading_gear_alpha"

        {
            rotate 0 ;
        }

        {
            rotate -13.9 ;
        }

        {
            rotate -28.7 ;
            resetTime 0;
        }
    }

Modeler galore & co-authors literally everything

 

 

Posted

If have turn fps meter on during loading, you'll see that the framerate can go down to 5, 1, or even 0 fps, even with simple WIP maps. If the gui animation is tied to framerate, then that's it, but as you mentioned, other games have that too.

  • 4 months later...
Posted

Here's an odd one. It's technically art related because I'm trying to figure out how to work around a models issue in the performance cull.

 

The problem is a visleaf containing a model with the bounding bigger (or poking out) of the region, will render even if no portion of the model is protruding from the visleaf. Is there a way to easily flag said model entity, to manually attach it's performance cull to something like a visportal? This compact upper room I've got in my map has a triangular shaped roof and internal meshes are shaped to fit that roofing framework. Again, that problem with the bounding is that it's squared which will penetrate to the exterior.

 

What would be magnificent is a, "seeing" entity if you will. Where it just defines it's own region and when that area is closed off (via visportals/doors) and you'd just target models you'd want to shut off with that visleaf. I can't tell you just how many more details I could pack into a map if this were a thing. It would have to be properly implemented so that no obvious popping would occur but this is a must for maps that have a lot of inside/outside sections that are tightly gated.

Modeler galore & co-authors literally everything

 

 

Posted

Here's an odd one. It's technically art related because I'm trying to figure out how to work around a models issue in the performance cull.

 

The problem is a visleaf containing a model with the bounding bigger (or poking out) of the region, will render even if no portion of the model is protruding from the visleaf. Is there a way to easily flag said model entity, to manually attach it's performance cull to something like a visportal? This compact upper room I've got in my map has a triangular shaped roof and internal meshes are shaped to fit that roofing framework. Again, that problem with the bounding is that it's squared which will penetrate to the exterior.

 

What would be magnificent is a, "seeing" entity if you will. Where it just defines it's own region and when that area is closed off (via visportals/doors) and you'd just target models you'd want to shut off with that visleaf. I can't tell you just how many more details I could pack into a map if this were a thing. It would have to be properly implemented so that no obvious popping would occur but this is a must for maps that have a lot of inside/outside sections that are tightly gated.

Can you move the visportal further out so it does not intersect anything?

Posted

If I understand this correctly, this should be your solution: http://wiki.thedarkmod.com/index.php?title=Visportals#Visportal_switches:_func_portals

 

Or, I'd just use hide 1 on a mesh along with proper trigger_multiples.

 

Yes that is exactly what I was looking for! ;)

 

 

Can you move the visportal further out so it does not intersect anything?

 

 

The problem if I do that in my case is that it will cull out the exterior details. My scenario gets introduced when working in tightly compact map designs with non-squared building techniques. Basically the invisible caulk wall that resides between mesh based walls creates problems (lighting, player collision or culling) if I move it one way or the other.

Modeler galore & co-authors literally everything

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
    • nbohr1more

      2.13 Moddb Article is up: https://www.moddb.com/mods/the-dark-mod/news/the-dark-mod-213-is-here
      · 1 reply
×
×
  • Create New...