Page 1 of 1

Wall text as an image

Posted: Tue Nov 04, 2014 1:28 am
by Jouki
Hello, can you help me clarify if it's even possible?

Re: Wall text as an image

Posted: Wed Nov 05, 2014 8:00 pm
by Lark
I'm not the best person to answer this, but since no one has said anything, I'd say that yes, it is possible. It is possible to create any object you desire, including a graphical object with text, and place it anywhere in the game you desire, including on a wall. How? Uh, I'm more of a scripter and not a 3D artist! Check out the Skuggasveinn's tutorials viewtopic.php?f=22&t=7055and note the making of the bows and the breakable walls ones specifically. I'm going to do this myself... someday! Good Luck, -Lark

Re: Wall text as an image

Posted: Wed Nov 05, 2014 8:41 pm
by Doridion
Hmmm, Jouki, not sure about that, but can't you hard script ( in the object definition ) your wall text comportement like a scroll or spawning a text scroll like there ?

Re: Wall text as an image

Posted: Wed Nov 05, 2014 9:30 pm
by Jouki
Doridion wrote:Hmmm, Jouki, not sure about that, but can't you hard script ( in the object definition ) your wall text comportement like a scroll or spawning a text scroll like there ?

Actaully I'm not sure I was thinking about that.

Re: Wall text as an image

Posted: Wed Nov 05, 2014 9:44 pm
by Jouki
Lark wrote:I'm not the best person to answer this, but since no one has said anything, I'd say that yes, it is possible. It is possible to create any object you desire, including a graphical object with text, and place it anywhere in the game you desire, including on a wall. How? Uh, I'm more of a scripter and not a 3D artist! Check out the Skuggasveinn's tutorials viewtopic.php?f=22&t=7055and note the making of the bows and the breakable walls ones specifically. I'm going to do this myself... someday! Good Luck, -Lark

yeah but's little bit overkill :D

I mean showing the image after click(, instead of text)

Re: Wall text as an image

Posted: Wed Nov 05, 2014 9:58 pm
by Doridion
Can you can clarify your idea please ? Y thought that you expect something like that :
SpoilerShow
Image
The code i made

Code: Select all

defineObject{
   name = "wall_text_image",
   baseObject = "dungeon_wall_text",
   components = {
    {
      class = "Model",
      model = "assets/models/env/dungeon_wall_text.fbx",
    },
    {
      class = "WallText",
      onShowText = function(self)
        GameMode.showImage("mod_assets/textures/pictures/example.tga")
      end
    },
    placement = "wall",
    replacesWall = true,
    editorIcon = 28,
  }
}
Edit : Updated my definition and works most fine, only thing is that seems a text must be entered after the image was shown. More else, the image must be as usual, in dds format ( .tga file )

Re: Wall text as an image

Posted: Thu Nov 06, 2014 12:38 am
by Jouki
I'm sorry, I've misunderstood you. yeah your code is what I meant. however it's little bit glitchy but I really appreciate your kindness. :)