Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Hopuranium

Pages: [1]
1
I resolve the problem by drawing a RectangleShape. ;) but it's not a real solution :o

2
Java / RenderTexture won't clear when moving the view of the renderTexture
« on: December 24, 2017, 04:14:34 pm »
Hello crab people :o,

I have an issue when I try to clear a renderTarget because when I want to, the area do not clear everything when I changed the center of the renderTexture position. I apply the texture of the RenderTexture in a sprite.

Inside the function that update the view:
View view = new View();
view.setSize(renderTexture.getView().getSize());
view.setCenter(CENTER);
this.renderTexture.setView(view);
 

Inside the function that render sprites in the RenderTexture:
renderTexture.clear(CLEAR_COLOR);

for (Sprite canvas : canvases)
      renderTexture.draw(canvas);

renderTexture.display();
 

Then in the RenderWindow main function:
Sprite sprite = ....;
sprite.setTexture(renderTarget.getTexture());
//LOOP
//view modifications
... using the first function
//graphics
window.clear();
window.draw(sprite);
window.display();
 

The problem is that the RenderTarget seems to not clear all the space. Then it let the previous drawings, and the next ones.

3
Thx you!
The problem is that JSFML want to load a '.so.1' but there is no '.so.1' in "jsfml.jar/linux_xXX/".
I'll try this afternoon your jsfml.jar because I do not have Fedora right now.
The required file is 'libopenal.so.1'

Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/student/8/68/17007168/.jsfml/linux_x64/libsfml-audio.so: libopenal.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
   at java.lang.Runtime.load0(Runtime.java:809)
   at java.lang.System.load(System.java:1086)
   at org.jsfml.internal.SFMLNative.loadNativeLibraries(Unknown Source)
   at org.jsfml.internal.SFMLNativeObject.<init>(Unknown Source)
   at org.jsfml.graphics.Font.<init>(Unknown Source)
   at Utils.Assets.<clinit>(Assets.java:12)
   at Main.main(Main.java:30)

4
Thx for your reply! Yeah I checked in every jsfml.jar and I already checked the '.so.1' and I can't find them.
:/

5
Hello Guy! (i'm french)

I'm working on a JSFML project for school.
And I have started to code a game on Windows using JSFML (and intelliJ) and it works well.
But I want to run the game (code) on Eclipse on Linux and the console throws me an exception:
with "UnsatisfiedLinkError " and says that there are missing files with .so.1 as extension in "jsfml.jar".

Thanks you ;)


Pages: [1]